Problems from Paging in DataGrid
DataGrid page features a lot of help
But choose, generally use your own defined paging
location
***
/
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
[Home]
[Previous]
[Next]
[last page]
Transferred
)
Use this method still there is a side
There is a problem now, a problem in DataGrid paging
Invalid CurrentPageIndex value. It must be greater than or equal to 0 and less than PageCount
When the second search data starts binding, since the first CurrentPageIndex parameter is not returned or default -1
There is also in the system, so when the search is performed, the page will be wrong. The reason is that the currentpageIndex parameter is less than zero or greater than PageCount, which is more opportunities greater than PageCount, so it is generally recommended before the search.
Set it to set its value and then run