在DataGridView中显示数据 [英] Display data in DataGridView
本文介绍了在DataGridView中显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含一列的表.我想在datagridview的一行中显示它.
I have a table include one column.I want to display it in a row of datagridview.
推荐答案
您必须阅读以下文章:
如何使用C#中的SQL语句填充DataGridView,GridView [ ^ ]
http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx [ ^ ]
希望对您有所帮助.
You must read these articles:
How to populate DataGridView, GridView with SQL statement in C#[^]
http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx[^]
Hope it helps.
^ ]
http://www.dotnetspark.com/Forum/2808-hi-plz-help-me-out-data-grid-view-problm.aspx [ http://msdn.microsoft.com/en-us/library/aa479341.aspx [ ^ ]
http://www.aspnettutorials.com/tutorials/database/db-grid-aspnet2- vb.aspx [ ^ ]
http://stackoverflow.com/questions/5592569/how-to-show-data-in-a-gridview-by-c-sharp-using-an-sql-server-database[^]
http://www.dotnetspark.com/Forum/2808-hi-plz-help-me-out-data-grid-view-problm.aspx[^]
http://msdn.microsoft.com/en-us/library/aa479341.aspx[^]
http://www.aspnettutorials.com/tutorials/database/db-grid-aspnet2-vb.aspx[^]
我已经创建了DataGridView UserControl.您可以从那里找到一些有用的代码.
请检查:逐步创建UserControl:带分页的DataGridView [ ^ ]
您可以找到源代码和可执行库.
祝你好运
谢谢
-Amit Gajjar
Hi,
I have created DataGridView UserControl. you can find some useful code from there.
Please check : Step by Step Creating UserControl : DataGridView With Paging[^]
You can find Source code and Executable library.
Best of luck
Thanks
-Amit Gajjar
这篇关于在DataGridView中显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文