Main Page | Report this Page
.NET DotNet Forum Index  »  General Discussion  »  Changing the font of DataGridView...
Page 1 of 1    

Changing the font of DataGridView...

Author Message
manjub...
Posted: Wed Nov 04, 2009 5:59 am
Guest
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
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Thu Nov 26, 2009 2:47 am