Пример #1
0
 private void bindUserData()
 {
     AspNetPager1.PageSize = Convert.ToInt32(page_rows.SelectedValue);
     B_User b = new B_User();
     DataSet ds = b.getUserData();
     PagedDataSource ps = new PagedDataSource();
     ps.DataSource = ds.Tables[0].DefaultView;
     AspNetPager1.RecordCount = ps.Count;
     ps.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
     ps.AllowPaging = true;
     ps.PageSize = AspNetPager1.PageSize;
     R_User.DataSource=ps;
     R_User.DataBind();
 }