简体   繁体   中英

how to transfer all data from database to texbox in C# windows application?

即时通讯使用我的C#应用​​程序的访问数据库作为数据库,我在c#中创建了1个数据库和1个Windows窗体应用程序,并且有一些文本框,是否有可能通过使用“ SELECT”语句将数据库中的所有数据插入文本框?我该怎么办?我需要帮助。

What you have to do is -- fill the datatable with this select query and asign each value of this datatable to each textbox.

THis might help you

How to fill a DataTable with the result of a LINQ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM