如何使用 vb.net 2003 手动填充 asp.net 1.1 中的数据网格?
只是想问一下是否可以使用vb.net在asp.net 2003中手动填充数据网格
我们通常使用此代码填充数据网格,在这段代码中它的作用是根据您的查询填充数据网格,它是自动的您无法编辑或评估其中的数据。
dataGrid.DataSource = ds
dataGrid.DataBind()
如果我想编辑或评估数据集中的数据怎么办?
just would like to ask if it is possible to manually populate the datagrid in asp.net 2003 using vb.net
we usually populate the datagrid using this code, in this code what it does is it populate the datagrid base on your query , it's automated you can't edit or evaluate the data inside.
dataGrid.DataSource = ds
dataGrid.DataBind()
What if if I want to edit or evaluate the data inside the DataSet?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在链接
DataSource
之前,您可以循环遍历它并根据需要修改值。尝试循环访问ds.Tables("TableName").Rows
集合。Before you link your
DataSource
, you can loop through it and modify the values if you want. Try looping through theds.Tables("TableName").Rows
collection.