Hi Nedash,
Pease do as follow,
you need to set the two follwing proerties when using pager.
PagerSettings-Mode="NumericFirstLast" PagerSettings-PageButtonCount = "5"
As I used in the following sample.
<asp:GridView ID="gvPaging" runat="server" AllowPaging="true"
PagerSettings-Mode="NumericFirstLast" PagerSettings-PageButtonCount = "5"
PageSize="2" OnPageIndexChanged="PageChanged"
onpageindexchanging="gvPaging_PageIndexChanging"></asp:GridView>
Thanks and Regards,
Rk_Hirpara