Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Gridview Sort Header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeB - 19 Jul 2007 22:26 GMT
Hello All, I just added sorting to my gridview and it messed up my headers.
I do not want the test to display as blue and I can not seem to figure out
what I need to do to get it back to my normal formatting. Here is what I
current have the style set to, can any one help me get it back to my
original style before I added sorting?

TIA

.GridViewHeader

{

text-align: left;

font-weight: bold;

color: #ffffff;

background-color: black;

text-decoration: none;

}
marss - 20 Jul 2007 08:17 GMT
> Hello All, I just added sorting to my gridview and it messed up my headers.
> I do not want the test to display as blue and I can not seem to figure out
> what I need to do to get it back to my normal formatting. Here is what I
> current have the style set to, can any one help me get it back to my
> original style before I added sorting?

This occurs because plain text in header cells was changed to link. If
you want use sorting and leave old appearance then define specific
styles for links.
Add this:
.GridViewHeader a, .GridViewHeader a:link, .GridViewHeader
a:active, .GridViewHeader a:visited, .GridViewHeader a:hover
{
font-weight: bold;
color: #ffffff;
text-decoration: none;
}

Regards,
Mykola
MikeB - 20 Jul 2007 11:26 GMT
Thank you.

>> Hello All, I just added sorting to my gridview and it messed up my
>> headers.
[quoted text clipped - 18 lines]
> Regards,
> Mykola

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.