Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the color of the selected page number in the gridview paging footer

I have a gridview and sqldatasource.

Gridview , Paging numbers.

When you select the number page in the footer of the gridview it will underline the selected number .

  • Is there any way of changing the color of the selected number ?

Thank you

like image 885
Jax Avatar asked Dec 10 '25 13:12

Jax


1 Answers

solved.........You can use a CSS class to do this: here is a sample.

  <style type="text/css">
    .pager span { color:#009900;font-weight:bold; font-size:16pt; }
  </style>

<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"  PageSize="5  >
<PagerStyle CssClass="pager" />

http://forums.asp.net/t/1092990.aspx?Highlight+current+page+on+gridview+pager

like image 129
Abdul Khaliq Avatar answered Dec 13 '25 12:12

Abdul Khaliq