/// <summary> /// Bind Grid /// </summary> private void BindReportGrid() { int pageSize = AspNetPager1.PageSize; int pageIndex = 1; if (AspNetPager1.CurrentPageIndex > 0 && isReset == false) { pageIndex = AspNetPager1.CurrentPageIndex; } int recordCount = 0; DataSet reports = null; try { reports = divisionManager.GetDivisionGoalsReport(pageSize, pageIndex, iRegionID.ToString(), iDivisionID.ToString(), out recordCount, OrderName, OrderType); } catch (Exception exception) { LPLog.LogMessage(exception.Message); } AspNetPager1.PageSize = pageSize; AspNetPager1.RecordCount = recordCount; gvDivisionReport.DataSource = reports; gvDivisionReport.DataBind(); }