Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my GridView I am using the following css for current page no

CSS
.cssPager span
{
    font-size: 24px;
    color: #EFEFEF;
    font-weight: bold;
}
.cssPager td
{
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 1px;
    padding-bottom: 2px;
}



It only shows underline for current page. But i want that remaining pages should have underline.


Please help me
Thanks in advance.
Posted
Updated 22-Sep-17 18:54pm
v2

Just now my problem has been solved.

I just add 1 line in css

C#
.cssPager a {
    text-decoration: underline;
}



After applying the above css now all the pages have underline except current page.
Thank you all very much..:-)
 
Share this answer
 
v2
<head runat="server">
    <title>your Page</title>
   <style type="text/css">
	.pager span { color:#009900;font-weight:bold; font-size:16pt; }
  </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" DataSourceID="SqlDataSource1"  PageSize="5  >
<PagerStyle CssClass="pager" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900