1
(TextBox)GridView1.Rows[e.RowIndex].Cells[1].Controls[0]).Text.ToString();
This worked for me thanks
0
Hi Please check the code
TextBox txtfName= (TextBox)e.Row.FindControl("txtFirstName");
stringfirstname =txtfName.Text;
and check the link also
http://stackoverflow.com/questions/6873973/how-to-find-control-in-templatefield-of-gridview