开发者

in gridview how to add the textbox when user click on link button?

开发者 https://www.devze.com 2023-04-03 16:18 出处:网络
I have gridview which contain four column ID,Name,Address and Ph_No. In gridview, one column for link button ID=Edit.

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

精彩评论

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