in gridview how to add the textbox when user click on link button?
I have gridview which contain four column ID,Name,Address and Ph_No. In gridview, one column for link button ID=Edit. When user click on the link "Edit" then textbox will be display in g开发者_如何学运维ridview control.
You have to use EditIndex
property of GridView
.
GridView1.EditIndex=1;
//code to rebind the GridView
Or handle RowEditing event of GridView with following code
GridView1.EditIndex=e.NewEditIndex;
//code to rebind the GridView
精彩评论