GridView1.AllowPaging = true; GridView1.PageSize = 10; GridView1.DataBind(); GridView1.EnableSortingAndPagingCallbacks = true;
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridView1.PageIndex = e.NewPageIndex; GridView1.DataSource = //get datasource (list or datatable) GridView1.DataBind(); //bind data }
GridView1.AllowPaging = true; GridView1.PageSize = 10; GridView1.EnableSortingAndPagingCallbacks = true; GridView1.DataSource =dataset; GridView1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)