GridView的分页功能的实现
要在PageIndexChanging里面重新绑定一下数据源
protected void StudentGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
StudentGridView.PageIndex = e.NewPageIndex;
this.StudentGridView.DataBind();
}
protected void StudentGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
StudentGridView.PageIndex = e.NewPageIndex;
this.StudentGridView.DataBind();
}