Cant locate Font property for Datagridview in property sheet

G

Guest

Hello,

I need to change the font size of a datagridview to accommodate a screen
resolution of 800x600. I know how to set the fontsize at runtime

datagridview1.Font = New Font("arial", 8, FontStyle.Regular)

But I would prefer to set this at the property sheet.

The datasource for the datagridview is a dataview that I use for filtering.
If the font size can be set in the property sheet could someone share how
this is done? Do I need to go to the columns collection to do this? That
would be tough because the datasource changes in number of columns. Or am I
limited to setting the font size at run time?

Thanks,
Rich

If this is doable
 
G

Guest

I think I figured this out. The datagridview resides in a groupbox control.
I set the groupbox control to my desired font size, and the datagridview
appears to have inherited this property from the groupbox control. Any
additional suggestions appreciated.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top