protected virtual void SetPagerObject(int totalRecords) { // Set Pager Information Pager.TotalRecords = totalRecords; Pager.SetPagerProperties(EventArgument); // Build paging collection Pages = new PMPagerItemCollection(Pager.TotalRecords, Pager.PageSize, Pager.PageIndex); // Set total pages Pager.TotalPages = Pages.PageCount; }
private void SetPagerObject(int totalRecords) { // Set Pager Information Pager.TotalRecords = totalRecords; Pager.PageSize = 5; Pager.SetPagerProperties(string.Empty); // Build paging collection Pages = new PMPagerItemCollection( Pager.TotalRecords, Pager.PageSize, Pager.PageIndex); // Set total pages Pager.TotalPages = Pages.PageCount; }