PC Review


Reply
Thread Tools Rate Thread

Changing the font of DataGridView

 
 
manjub
Guest
Posts: n/a
 
      4th Nov 2009
Hi,

I have a TabControl in my application. TabControl has Font property
which I would like to use for most of the controls within TabControl.
However, for a particular DataGridView I would like to change the
font. I find that Font property of that DataGridView is not taking
affect at all.

I tried to debug this and found that at the end of InitializeComponent
for TabControl there is a code that read something like

this.Font = new System.Drawing.Font("Microsoft Sans
Serif", 9F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));


This statement override the Font value for DataGrid View. Any help you
can give is highly appreciated. I am using C# in .Net 2.0.

Thanks,
manjub
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font color for certain rows in DataGridview Elmo Watson Microsoft Dot NET Framework Forms 3 25th Nov 2010 12:06 PM
Changing Font color based on font type or size John Microsoft Excel Misc 2 7th Feb 2008 12:50 AM
Changing row height in a data grid without changing font size =?Utf-8?B?S2FzZXk=?= Microsoft C# .NET 1 30th Jun 2006 12:20 AM
DataGridView: dynamic font size change Lennart Nielsen Microsoft VB .NET 1 6th Feb 2006 12:08 PM
DatagridView, setting Font for individual Cells Martin Streller Microsoft ADO .NET 1 12th Oct 2004 06:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 PM.