private void BindSites() { Pagination pagination = new Pagination(); pagination.PageIndex = pager.PageIndex; pagination.PageSize = pager.PageSize; int total = 0; DataTable table = DistributorHelper.GetDistributorSites(pagination, userName, trueName, out total); grdDistributorSites.DataSource = table; grdDistributorSites.DataBind(); pager.TotalRecords = total; pager1.TotalRecords = total; }
private void BindSites() { Pagination pagination = new Pagination(); pagination.PageIndex = this.pager.PageIndex; pagination.PageSize = this.pager.PageSize; int totalRecords = 0; System.Data.DataTable distributorSites = DistributorHelper.GetDistributorSites(pagination, this.userName, this.trueName, out totalRecords); this.grdDistributorSites.DataSource = distributorSites; this.grdDistributorSites.DataBind(); this.pager.TotalRecords = totalRecords; this.pager1.TotalRecords = totalRecords; }