Example #1
0
 /// <summary>
 /// 绑定列表数据
 /// </summary>
 private void BindData()
 {
     string orderby = OrderType == 0 ? Orderfld + " asc" : Orderfld + " desc";
     int startIndex = (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + 1;
     int endIndex = this.AspNetPager1.CurrentPageIndex * this.AspNetPager1.PageSize;
     Maticsoft.BLL.AR_Report bll = new Maticsoft.BLL.AR_Report();
     DataSet datas = bll.GetListByPage(SearchTerms, orderby, startIndex, endIndex);
     GridView1.DataSource = datas;
     GridView1.DataBind();
     this.AspNetPager1.RecordCount = bll.GetRecordCount(SearchTerms);
 }