110,566
社区成员
发帖
与我相关
我的任务
分享
使用方法:
DataSet ds = labBll.GetAllLab(1, pager1.PageSize); //获取集合
BindList(1, 0, "", ds); //绑定
//绑定方法
private void BindList(int page, int number, string value, DataSet ds)
{
int nRecordCount = 0;
int.TryParse(GetLabCount(number, value), out nRecordCount);
this.pager1.CurrentPageIndex = page;
this.pager1.RecordCount = nRecordCount;
dgvLabList.DataSource = ds.Tables["LabList"];
}