如何获取gridview行值 [英] how to get the gridview row value
本文介绍了如何获取gridview行值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个gridview,其中有3列。第1列具有从数据库中检索的标签和标签文本。第2列和第3列由按钮组成。
如果用户点击任何按钮,我需要相应的行标签值。
如何在c#中获取该值#div class = h2_lin>解决方案
您好,
请参阅以下链接。
如何找到对GridView RowCommand事件的控制? [ ^ ]
gridview的rowdatabound事件中的FindControl [ ^ ]
i have a gridview in which there are 3 columns. 1st column has label and label text is retrieved from database. 2nd & 3rd columns consist of buttons.
If user clicks any of the button i need the corresponding rowth label value.
how to get that value in c#
解决方案
Hi,
refer below links.
How to find control on GridView RowCommand Event?[^]
FindControl in rowdatabound event of gridview[^]
这篇关于如何获取gridview行值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文