private void BindProductSaleRanking() { SaleStatisticsQuery productSale = new SaleStatisticsQuery(); productSale.StartDate = this.dateStart; productSale.EndDate = this.dateEnd; productSale.PageSize = this.pager.PageSize; productSale.PageIndex = this.pager.PageIndex; productSale.SortBy = "ProductSaleCounts"; productSale.SortOrder = SortAction.Desc; int totalProductSales = 0; DataTable distributionProductSales = DistributorHelper.GetDistributionProductSales(productSale, out totalProductSales); this.grdProductSaleStatistics.DataSource = distributionProductSales; this.grdProductSaleStatistics.DataBind(); this.pager.TotalRecords = totalProductSales; }