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
	
.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: