开发者

Put GridView in Edit Mode Programmatically with 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜