Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is it possible to find the Header Template controls in GridView RowDataBound DataControlRowType.DataRow
Posted

Try
TextBox textBox = (TextBox)gridView1.HeaderRow.FindControl("contorlId")
 
Share this answer
 
v2
for(int i=0;i<dt.rows.count;i++)>
{
string st= e.Row.Cells[i].Text;
}

//dt is datatable
 
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