如何将数据填充到数据表 [英] How To Fill Data To Data Table

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

问题描述

01)我有DataSet调用tempDataSet

02)这个tempDataSet有一个DataTable调用tempStock它有两列(ItemCode,

描述,数量)这个DataTable有绑定到Datagridview



我想要做的是我想用这样的sql select语句填充datagride视图



(选择ItemCode,描述,库存数量)



怎么做这个

谢谢

01) I have DataSet Call tempDataSet
02) This tempDataSet Has One DataTable Call tempStock And it has two columns(ItemCode,
Description,Qty)this DataTable Has Bind To Datagridview

what i want to do is I want to fill datagride view using sql select statement like this

(select ItemCode,Description,Qty From Stock)

how to do This
thanks

推荐答案

按照以下说明操作: DataGridView.DataSource属性 [ ^ ]。在页面底部,您将找到一个代码。
Follow this instruction: DataGridView.DataSource Property[^]. On the bottom of page, you'll find a code.


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

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