GirdView 分页
<dealeasy:PagerForGridView ID="pagerInputSupportMember" OnReBindGridView="pagerInputSupportMember_ReBindGridView" TargetGridViewName="gridMemberInternal" runat="server"><dealeasy:SingleHeaderDataGrid AutoGenerateColumns="False" ID="gridMemberInternal" AllowPaging="true"
CssClass="sharepoint-theme" Width="950px" runat="server" PageSize="20" DataKeyNames="MemberNo">
#region GridView分页事件
/// <summary>
/// GridView分页事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void pagerInputSupportMember_ReBindGridView(object sender, EventArgs e)
{
// 重新绑定数据
BindGrid();
}
#endregion --------------------编程问答-------------------- 你想说明什么问题 --------------------编程问答-------------------- 要在GridView中加入
//实现分页
AllowPaging="true"
//一页数据10行
PageSize="10"
// 分页时触发的事件
OnPageIndexChanging="gvwDesignationName_PageIndexChanging"
在服务器事件里
protected void gvwDesignationName_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gvwDesignationName.PageIndex=e.newIndex;
bingDesignatioonName();
} --------------------编程问答-------------------- 写个分页控件 很方便 --------------------编程问答-------------------- 分页建议用第三方控件aspnetpager --------------------编程问答-------------------- 自己写个分页控件啊、方便,并且可以在多个页面使用
补充:.NET技术 , ASP.NET