③在 Details View1控件的属性窗口中,设置 Allow Paging为 true 添加 Details view1控件的 Pagelndex changing事件,代码如下 a protected void Details View1_PageIndex Changinglobject sender, Details View EventArgs e) //分页操作 Details View1. PageIndex =e. NewPageIndex; show allusersi0;//绑定控件◼ ③ 在DetailsView1控件的属性窗口中,设置AllowPaging为 true。 ◼ 添加DetailsView1控件的PageIndexChanging事件,代码如下 : ◼ protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e) ◼ { //分页操作 ◼ DetailsView1.PageIndex = e.NewPageIndex; ◼ showAllUsers();//绑定控件 ◼ }