Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
126926 Points
17922 Posts
MVP
Dec 17, 2007 11:58 PM|LINK
Try this
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {
foreach(GridViewRow row in GridView1.rows) {
TextBox tb = (TextBox) row.Cells[1].FindControl("TextBox1");
//OR
TextBox tb = (TextBox) row.FindControl("TextBox1");
}
vinz
All-Star
126926 Points
17922 Posts
MVP
Re: Retrieve select row.cell from Gridview and display in Textbox
Dec 17, 2007 11:58 PM|LINK
Try this
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
foreach(GridViewRow row in GridView1.rows)
{
TextBox tb = (TextBox) row.Cells[1].FindControl("TextBox1");
//OR
TextBox tb = (TextBox) row.FindControl("TextBox1");
}
MessageBox Controls for WebForms | Blog | Twitter | Linkedin