开发者

GridView sorting problem?

after i sort my gridview, when i want to edit a row the selected row i开发者_开发百科s completely wrong.

what can i do?


After sorting, try setting the SelectedIndex property to -1.

Alternatively, try using the SelectedDataKey property (check this link for details). Note that you may have to write your code in the PreRender event for the data keys to be set.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜