阅读背景:

重新加载GridView时不设置GridView按钮

来源:互联网 

I am populating a GridView programmatically and I have paging enabled. My GridView is populated on a DropDown_SelectedIndexChanged handler, and it loads the first page of the new selection successfully. I do this by resetting the PageIndex to 0. However, when I selected a new value in the dropdown, the Page Buttons (using Numeric page buttons) do not reset. So we have page 1 showing, but the page 5 button (or whicheverI last clicked) is selected. This could be confusing to users. How can I reset the button that is selected? Is there a property that sets the selected button for paging?I am populating a GridView programmatically and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: