如何在Gridview中更改命令字段的文本 [英] How to change the text of Command Field in Gridview
本文介绍了如何在Gridview中更改命令字段的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨盖伊兹,
传递一些条件后,如何在gridview中动态更改Commandfield值的selecttext?
例如:
在第一行中,我想将文本更改为"changed"
请帮助.
使用
解决方案
解决方案
e.Row.Cell [ 1 ].Controls [ 0 ]. Text = " ;尝试此操作,它将解决您的问题.
Hi Guyz,
how can i change the selecttext of commandfield value in gridview dynamically after passing some codition?
for example:
in 1st row i want to change the text to "changed"
pls help.
解决方案
using
e.Row.Cell[1].Controls[0].Text = "Changed";Try this, it will solve your problem.
这篇关于如何在Gridview中更改命令字段的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文