Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't remove bold font from grid headers
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01422354
Message ID:
01422358
Views:
38
To setup column headers font style, I used the following code to have Regular font style:
dgvTst.ColumnHeadersDefaultCellStyle.Font =
	new System.Drawing.Font("Microsoft Sans Serif", 9.0F,
	System.Drawing.FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)), false);
or you can choose System.Drawing.FontStyle.Bold to keep it Bold. I tested it with .NET DataGridView control and it works, may be MM has another way to make it happen.

HTH

>I have a couple of grids that have the headers in bold. I would like to remove that. I have changed the RowHeadersDefaultCellStyle and >set the Font Bold setting to False. The headers are still bolded. I cannot find any other place in which to change them individually or >globally. Any suggestions? I'm not sure if this is a MM issue or a .NET issue. TIA.
Previous
Reply
Map
View

Click here to load this message in the networking platform