vijay

welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Monday, February 20, 2012

Apply CSS style for gridview pager in asp.net


To apply style in gridview paging need a simple code with css. By using CSS we can easily apply any type of style to gridview paging.

Here i share a simple style css code for gridview..from this one you can change any style as you like..
.grid_paging a
{
     text-decoration: none;   }
.grid_paging a:hover
{
    text-decoration: underline;     }
.grid_paging a:link
{
   font-size: 15px;
    padding: 2px 6px;
    background-color :#EBECEE;
    border: 1px solid #B5BAC0;    }
.grid_paging span
    {            background-color: #263441;
            border: 1px solid #DBEAFF;
            color: #FFFFFF;
            padding: 2px 5px;    }

You must add the code in your CSS file..Then call the css in page footer style like below..


 <PagerStyle CssClass="grid_paging" />

i hope you like it...have a Happy day.

0 comments:

Post a Comment