开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜