Set the GridView property
AllowPaging
to true. Set
PageSize
(normal its 10).
Then on the
onPageIndexChanging
event write down the following code.
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
thats all....