GridView的分页功能的实现

要在PageIndexChanging里面重新绑定一下数据源
protected void StudentGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        StudentGridView.PageIndex = e.NewPageIndex;
        this.StudentGridView.DataBind();   
       
    }
posted @ 2007-12-06 16:05  不染丹心  阅读(1459)  评论(1编辑  收藏  举报