62,046
社区成员
发帖
与我相关
我的任务
分享
private void zimu()
{
PagedDataSource pds = new PagedDataSource();
DataSet zimuds = new DataSet();
zimuds = DataSet.Copy();
DataTable dt = new DataTable();
dt = zimuds.Tables[0];
dt.DefaultView.RowFilter = "[Depth]=3 AND [Other1]='" + zi + "' AND [Superiors] LIKE 'k" + TypeID.ToString() + "%'";
this.AspNetPager1.RecordCount = dt.DefaultView.Count;
pds.DataSource = dt.DefaultView;
pds.AllowPaging = true;
pds.PageSize = this.AspNetPager1.PageSize;
pds.CurrentPageIndex = this.AspNetPager1.CurrentPageIndex - 1;
MessageBox.Show(this, dt.DefaultView.Count.ToString());
this.Repeater2.DataSource = pds;
this.Repeater2.DataBind();
DiquCss();
zimucss();
}
protected void AspNetPager1_PageChanged(object sender, EventArgs e)
{
zimu();
}
this.AspNetPager1.RecordCount = dt.DefaultView.Count;
DataView dv=new DataView(dt);
int pageCount=dv.Count;