Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
187 Points
138 Posts
Dec 18, 2007 01:37 AM|LINK
Hi vinz,
Thanks for your replied I tried and it's still null for
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {
foreach(GridViewRow row in GridView1.rows) {
TextBox tb = (TextBox) row.Cells[1].FindControl("TextBox1") ; TextBox tb1 = (TextBox) row.FindControl("TextBox1") ;
if ( tb = null || tb1 != null) { Response.write( TextBox tb = (TextBox) row.Cells[1].FindControl("TextBox1").Text ); } } and it's still null
BrigideW
Member
187 Points
138 Posts
Re: Retrieve select row.cell from Gridview and display in Textbox
Dec 18, 2007 01:37 AM|LINK
Hi vinz,
Thanks for your replied
I tried and it's still null for
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
foreach(GridViewRow row in GridView1.rows)
{
TextBox tb = (TextBox) row.Cells[1].FindControl("TextBox1") ;
TextBox tb1 = (TextBox) row.FindControl("TextBox1") ;
if ( tb = null || tb1 != null)
{
Response.write( TextBox tb = (TextBox) row.Cells[1].FindControl("TextBox1").Text );
}
}
and it's still null