如何使用 vb.net 2003 手动填充 asp.net 1.1 中的数据网格?

发布于 2024-08-18 20:26:06 字数 215 浏览 5 评论 0原文

只是想问一下是否可以使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷炫老祖宗 2024-08-25 20:26:06

在链接 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 the ds.Tables("TableName").Rows collection.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文