Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 23rd, 2006, 04:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default GridView HeaderStyle Weirdness

Sorry if this has been asked before, but I didn't see it archived.

I'm using Visual Web Developer Express. It isn't possible for me to "unbold" the GridView headerstyle font property. My GridView header text is bold, whether I attempt to change the setting declaratively, programmatically, via the GUI, CSS classes, etc.

I think its broke. Anyone had this problem? Does an Express Edition service pack fix it?

Thanks,

Bob

Reply With Quote
  #2 (permalink)  
Old December 23rd, 2006, 05:29 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Bob,

This is not a Visual Studio problem (nor an ASP.NET problem) but an HTML issue.

The GridView is designed to render its header row with <th> tags as opposed to <td> tags to indicate it's an header. A browser, by default, is set up to render <th> tags in bold to distinguish them from data cells.

The fix is easy; just override the behavior for <th> tags in a CSS file, like this:

th
{
  font-weight: normal;
}

Merry Christmas,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
  #3 (permalink)  
Old December 25th, 2006, 02:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Many thanks Imar. And Happy Holidays to you and yours as well!

Bob

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array weirdness? oldmainframehack Beginning PHP 1 September 5th, 2007 03:24 PM
Class Nesting Weirdness?? HotBlue Visual Basic 2005 Basics 3 November 8th, 2006 03:22 PM
Selecting Text Weirdness Aaron Edwards ASP.NET 2.0 Basics 4 January 16th, 2006 03:06 PM
DateDiff Weirdness SerranoG Access VBA 1 July 16th, 2004 12:38 AM



All times are GMT -4. The time now is 07:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.