Normally in Win Application you have Paging option is available only for moving to Next or Previous record, and move to First or Last Record. Suppose if you want to set page wise navigation then you have to go for custom paging.
In codeplex you can find CustomPaging API this is an alpha release, they provide an set of inbuild methods for Record Navigation, and page navigation. You can make use this CustomPaging API to any Application both Windows or Web Application. You can download this CustomPaging API form here [Click Here To Download]
Class Description
Available Function in dsPaging
Properties
1) NumberOfRecordPerPage
Note:- This NumberOfRecordPerPage must be specify before you call any static method from below for paging at first time. This property hold how many number of records can disply per page.
Static Methods
1) List
2) List
3) List
4) List
5) List
6) List
7 ) List
8 ) List
Note:-
Here curentgridindex:- Refer Current Select index of the grid
currentpage:- Current Page that is displayed on the grid
totalrowcount:- Total number of record that holds (Full row count and not per page row count)
rowindex:- Same as Currentgridindex.
Sample Code:
Any bug or Paging API question are always welcome.
No comments:
Post a Comment