Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't remove bold font from grid headers
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01422354
Message ID:
01422358
Vues:
39
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform