在网格视图中没有从标题temp获取文本框值 [英] not getting text box value from header temp let in grid view
本文介绍了在网格视图中没有从标题temp获取文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<code> string str = ((TextBox)this.Gr1.HeaderRow.FindControl("TextBox1")).Text;</code>
not getting text box value from header temp let in grid view
推荐答案
如果您想获取标题内容,请尝试测试以下代码:
if you want to get the header content, please try to test the following code:
string str = Gr1.Columns(Gr1.CurrentCell.ColumnIndex).HeaderText
string headerRowText = gvList.HeaderRow.Cells [i] .Text;
string headerRowText = gvList.HeaderRow.Cells[i].Text;
这篇关于在网格视图中没有从标题temp获取文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文