将数据绑定到Grid View控件 [英] Binding data into a Grid View Control

查看:90
本文介绍了将数据绑定到Grid View控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,希望将整个表显示在数据网格视图控件中....我正在使用访问数据库

i am developing an application in with i want to show entire table into a in a data grid view control....i am using access database

推荐答案

您尝试过搜索Google吗?
您会找到许多与此功能有关的链接.
Have you tried searching Google?
You''ll find many many links about this functionality.


添加gridview,在设计器中查看它,右上角出现一个箭头,跟随它添加数据源,您的数据库并为其提供一个您想像从表名和连接字符串中选择*这样运行的查询.
Add gridview,view it in designer an arrow appears on top-right follow it add a data source,your database and provide it a query you want to run like select * from tablename and a connection string and it''d be done.


这篇关于将数据绑定到Grid View控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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