标题:获取DataSet中某行某列的数据
LabelText = DataSet11.Tables(“COMM.USERS”).Rows[0][“User_Name”].tostring()
LabelText = DataSet11.Tables(“COMM.USERS”).Rows(0).Item(“user_name”)
Label.Text=ds.Tables(0).Rows(i).Item( "列名 ")
Label.Text=ds.tables[0].rows[0][ "filed "]
Label.Text=ds.Tables[0].Rows[x][y]
转载:https://blog.youkuaiyun.com/wangmj518/article/details/81323731
这篇文章展示了如何在C#编程中,从DataSet对象的表格中获取指定行和列的数据。主要方法包括使用Rows集合和Item属性来访问数据,例如:LabelText=DataSet11.Tables[COMM.USERS].Rows[0][User_Name].ToString()。这些示例说明了对数据库数据进行操作的基本方式。
1346

被折叠的 条评论
为什么被折叠?



