Click here to Skip to main content
15,913,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
<code> string str = ((TextBox)this.Gr1.HeaderRow.FindControl("TextBox1")).Text;</code>

not getting text box value from header temp let in grid view 
Posted

if you want to get the header content, please try to test the following code:
C#
string str = Gr1.Columns(Gr1.CurrentCell.ColumnIndex).HeaderText
 
Share this answer
 
string headerRowText = gvList.HeaderRow.Cells[i].Text;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900