开发者

Put GridView in Edit Mode Programmatically with ASP MERMERSHIP

开发者 https://www.devze.com 2023-01-17 01:13 出处:网络
I need Put GridView in Edit Mode Programmatically when editing ROLES 开发者_如何学Cin ASP MERMERSHIP.

I need Put GridView in Edit Mode Programmatically when editing ROLES 开发者_如何学Cin ASP MERMERSHIP. Could you provide me some examples? I am not able to write the appropriate EVENTS to display the right EDIT TEMPLATE.

Thanks


I'm not sure I understand your question, but a GridView is designed to have only one row in edit mode at any one time.

You can specificy programmatically which row should be in edit mode with:

  YourGridView.EditIndex = rowIndex;

where rowIndex is an int representing the row number (-1 being none).

Select the edit index and re-bind the GridView.

0

精彩评论

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