Situation: You need some text boxes disable when gridview is in edit mode.
=======
Solution:
======
1) Bind the Data without Sqldatasource Control
2) In Row Editing write the code:
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
gridbind();
TextBox tx_chdets = (TextBox)GridView1.Rows[e.NewEditIndex].FindControl(“TextBox1”);
tx_chdets.Readonly=true;
}
nice post. find your post here w3bookmarks.com