GridView分页

在Gridview中添加

AllowPaging="True"   onpageindexchanging="Gridview_PageIndexChanging" PageSize="10"

在后台代码中添加

 protected void GV_ProInfo_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GV_ProInfo.PageIndex = e.NewPageIndex;
        重新绑定Gridview

    }

posted @ 2012-04-28 13:29  无头咸鱼  阅读(235)  评论(0编辑  收藏  举报