如何填充数据网格? [英] How to fill a datagrid?

查看:174
本文介绍了如何填充数据网格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
在vb.net中,如何从我们的数据库SQLserver中的现有表填充datagrid列?
谢谢

Hello
In vb.net, how to fill a datagrid columns from an existing table in our database SQLserver?
thank you

推荐答案

大量文章可从互联网上获得.
这是一个.
Tons of articles are available on the internet.
Here is one.



通过查询表将现有表中的数据获取到数据集的表[0]中

将datagrid.datasource设置为dataset.tables [0]

这样您就可以完成任务

问候
kumaran
Hi
Get the data in exising table into dataset''s table[0] by querrying the table

Give datagrid.datasource as dataset.tables[0]

by doing this you will get task finished

regards
kumaran


omri在2003年发表了一篇对我很有帮助的文章.

这是链接:

DataGrid101:使用Windows.Forms DataGrid
omri posted an article in 2003 that was quite helpful to me.

Here is the link:

DataGrid101: Using Windows.Forms DataGrid


这篇关于如何填充数据网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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