GridView项目访问权限 [英] GridView item access

查看:88
本文介绍了GridView项目访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i有一个网格视图,显示我在数据库上的数据,如何访问特定的单元格值?





例如我想访问第2行和第4列中保存的单元格值并将其分配给我页面上的Label文本





像这样: label1.text = GridView1.row(2).column(4).tostring











谢谢,



i have a grid view which shows my data on the database, how can i access a specific cell value ??


for example i want to access the cell value saved in Row 2 and column 4 and assign it to a Label text on my page


like this: label1.text=GridView1.row(2).column(4).tostring





thanks,

推荐答案

试试这个...

try this...
label1.Text=GridView1.Rows[2].Cells[4].ToString();


这篇关于GridView项目访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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