private void BindData() { ProductQuery entity = new ProductQuery(); entity.PageSize = this.pager.PageSize; entity.PageIndex = this.pager.PageIndex; entity.ProductCode = this.productCode; entity.Keywords = this.productName; entity.ProductLineId = this.productLineId; if (this.grdAuthorizeProducts.SortOrder.ToLower() == "desc") { entity.SortOrder = SortAction.Desc; } entity.SortBy = this.grdAuthorizeProducts.SortOrderBy; Globals.EntityCoding(entity, true); DbQueryResult submitPuchaseProducts = SubSiteProducthelper.GetSubmitPuchaseProducts(entity); this.grdAuthorizeProducts.DataSource = submitPuchaseProducts.Data; this.grdAuthorizeProducts.DataBind(); this.pager.TotalRecords = submitPuchaseProducts.TotalRecords; this.pager1.TotalRecords = submitPuchaseProducts.TotalRecords; }