如何获取GridView的单元格中的标签控件的文本值? [英] How to get Text value of Label-controls in cells of GridView?

查看:92
本文介绍了如何获取GridView的单元格中的标签控件的文本值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的GridView中有一个包含Label-controls值的列。我需要知道如何访问每个Label控件以获取其Text值。您可以将其值存储在隐藏字段中,并将其放在任何其他列中。然后,当您检索该行值时,您可以访问该隐藏字段值


In my GridView there is a column containing Label-controls as value. I need to know how to access each Label-control to get its Text value. Any help is appreciated.

解决方案

You can store its value in a hidden field and place it in any other column. Then when you retrieve that row value you can access that hiddenfield value

这篇关于如何获取GridView的单元格中的标签控件的文本值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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