VS.NET - ASP.NET - Datagrid - Sortable Header Styles
Synopsis:
The syntax for an external style sheet to format the headers of sortable (hyperlink) columns in an asp.net datagrid. One common use of this code would be to remove underlines from the column header sort text.
Solution:
Stylesheet
Datagrid Headerstyle setup
.sortgrid a
{
color: White;
text-decoration: none;
}
.sortgrid a:visited
{
color: White;
}
.sortgrid a:hover
{
color: #660000;
}
.sortgrid a:active
{
color: #660000;
}
Datagrid Headerstyle setup
<HeaderStyle cssClass="sortgrid"></HeaderStyle>
About this page:
- Author: Eric Dalnas
- Created: Monday, November 21, 2005
- Last Updated: Monday, November 21, 2005
Copyright © 2006 novusoft LLC