Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > DataGridView Font


Reply
 
Thread Tools Display Modes
  #1  
Old 07-04-2012, 02:41 PM
sirmilt sirmilt is offline
Contributor
 
Join Date: Jan 2003
Location: Florida
Posts: 413
Default DataGridView Font


I am trying to change the Font, Font Size and Color of the column headings.

i understand that the default dint is set by the font selected for the form property.
I set the font, color and back color that I want in the ColumnHeadersDefaultCellStyle property. Before i run the program, it looks exactly the way I want it but-when the program runs I get-the form default style.

From what I have read up to now, I was under the impression that the property settting for the grid overrides the property setting for the form.

Is the only answer to set the font in code?
Reply With Quote
  #2  
Old 07-09-2012, 07:34 AM
DrPunk's Avatar
DrPunk DrPunk is offline
Senior Contributor

* Expert *
 
Join Date: Apr 2003
Location: Never where I want to be
Posts: 1,272
Default

Could it be this?

Quote:
If visual styles are enabled and EnableHeadersVisualStyles is set to true, all header cells except the TopLeftHeaderCell are painted using the current theme and the ColumnHeadersDefaultCellStyle values are ignored.
From -> http://technet.microsoft.com/en-us/s...faultcellstyle
__________________
There are no computers in heaven!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->