Jax
Jax

Reputation: 997

How to change gridview paging numbers size?

I'm using a gridview and sqldatasource. Paging is enabled in mygridview.

I would like to know if there's any way to change the size of the paging numbers. ( the numbers size below the gridview to be larger )

Thanks

Upvotes: 5

Views: 7060

Answers (1)

DOK
DOK

Reputation: 32851

Inside the GridView tag, you can include special tags for setting the Pager styles:

    <PagerSettings FirstPageText="First Page" LastPageText="Last Page" Mode="NumericFirstLast" Position="TopAndBottom" />  
    <PagerStyle BackColor="Yellow" ForeColor="Red" />  

Here is an article describing some of the options, and showing what they would look like. As you can see there, you can either set the font directly in the PagerStyle tag, or you can apply a CSS style like this:

<style type="text/css">   
          .cssPager span { background-color:#4f6b72; font-size:18px;}    
    </style>

<PagerStyle CssClass="cssPager" />

Upvotes: 6

Related Questions