我如何从数据库获取数据到datagrid视图 [英] how can i get the data from database to datagrid view

查看:102
本文介绍了我如何从数据库获取数据到datagrid视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows应用程序中将数据从数据库获取到datagrid视图中?

解决方案

参考:
如何使用C#将sql数据绑定到Windows应用程序中的Datagridview .Net [ ^ ]
如何:将数据绑定到Windows窗体DataGridView控件 [演练:在Windows窗体DataGridView控件中验证数据 [ ^ ]

访问CodeProject搜索 [ http://msdn.microsoft. com/en-us/library/fbk67b6z.aspx [ ^ ]
http://nareshkamuni.blogspot.in/2012/04/how-to-bind-sql-data-to-datagridview-in.html [ 解决方案

Refer:
How to Bind sql data to Datagridview in Windows application using C#.Net[^]
How to: Bind Data to the Windows Forms DataGridView Control[^]
Walkthrough: Validating Data in the Windows Forms DataGridView Control [^]

Visit google[^] sometimes it give huge (About 6,560,000 results (0.33 seconds)) results you can try CodeProject search[^] also.


Try looking into this link : http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx[^]
http://nareshkamuni.blogspot.in/2012/04/how-to-bind-sql-data-to-datagridview-in.html[^]


这篇关于我如何从数据库获取数据到datagrid视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆