private void BindRequests() { Pagination pagination = new Pagination(); pagination.PageIndex = this.pager.PageIndex; pagination.PageSize = this.pager.PageSize; int totalRecords = 0; System.Data.DataTable domainRequests = DistributorHelper.GetDomainRequests(pagination, this.userName, out totalRecords); this.grdDistributorDomainRequests.DataSource = domainRequests; this.grdDistributorDomainRequests.DataBind(); this.pager.TotalRecords = totalRecords; this.pager1.TotalRecords = totalRecords; }
void BindRequests() { Pagination pagination = new Pagination(); pagination.PageIndex = pager.PageIndex; pagination.PageSize = pager.PageSize; int total = 0; DataTable table = DistributorHelper.GetDomainRequests(pagination, userName, out total); grdDistributorDomainRequests.DataSource = table; grdDistributorDomainRequests.DataBind(); pager.TotalRecords = total; pager1.TotalRecords = total; }