vijay

welcome Netizen

welcome Netizen
Hi folks this site Share Basic Knowledge in .NET, DotNet, C#,DOT NET CODE, ASP.NET, VB.NET, DOT NET TRICKS,Dotnetcode,Android and Latest Technology Articles in VB,Android and ASP.NET

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