protected void BindGV() { if (this.ViewState["cost"] == null) { string code = base.Request["code"]; string name = base.Request["name"]; this.ViewState["cost"] = EReport.GetCostAnalysis(name, code); } DataTable dataTable = this.ViewState["cost"] as DataTable; this.AspNetPager1.RecordCount = dataTable.Rows.Count; this.AspNetPager1.PageSize = NBasePage.pagesize; int currentPageIndex = this.AspNetPager1.CurrentPageIndex; this.gvBudget.DataSource = BudgetManage_Report_CostAnalysis.GetPageDataTable(dataTable, currentPageIndex, NBasePage.pagesize); this.gvBudget.DataBind(); }