HI,
You can use datapager to give paging to your grid.
Add the following code to the aspx page below the grid control:
<asp:DataPager ID="DataPagerPro" runat="server"
PagedControlID="Grid"
PageSize="8">
...
</asp:DataPager>
Add the following event to code behind:
protected void Grid_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
{
this.DataPagerPro.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);
Grid.DataBind();
}
Make sure your grid is having the
"Grid_PagePropertiesChanging"
method defined.
Thanks