Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }