Пример #1
0
        /// <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 = region.GetRegionGoalsReport(pageSize, pageIndex, iRegionID.ToString(), out recordCount, OrderName, OrderType);
            }
            catch (Exception exception)
            {
                LPLog.LogMessage(exception.Message);
            }

            AspNetPager1.PageSize    = pageSize;
            AspNetPager1.RecordCount = recordCount;

            gvRegionReport.DataSource = reports;
            gvRegionReport.DataBind();
        }