473,382 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Cant locate Font property for Datagridview in property sheet

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
Jun 26 '06 #1
1 2385
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

"Rich" wrote:
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

Jun 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Haines Brown | last post by:
I don't understand the inheritance logic in this situation. Let me describe a simple situation: I have a document with a style sheet that specifies: address, blockquote, caption, center, dd,...
7
by: Fabian Neumann | last post by:
Hi! I got a problem with font-family inheritance. Let's say I have CSS definitions like: p { font:normal 10pt Verdana; } strong { font:normal 14pt inherit;
0
by: JR | last post by:
Hi, i found a user control on the net see code below it is part of VSEssential but I like the coolProgressBar. Zo I want to use it into my program and I always get the error that it can't find...
7
by: Daniel Kaplan | last post by:
I have the item below at the top of my style sheet. And it seems that the font-szie is ignored. I know that my linked style sheet is being read, and used because if I remove the font-family line,...
4
by: Matt | last post by:
Another interesting issue: I set the default font on most of my forms to what I want the text in my controls to show up as (say, Verdana 9pt.), and then just change the font on labels and buttons...
13
by: al jones | last post by:
I think I need to degrade this to make it work so I'll ask a really basic question. I'm trying to display a set of fonts that are *not* installed but are present on my computer. Is there any...
30
by: Takehiko Abe | last post by:
I have a <pelement with <ttinside: ;;; <p>A paragraph contains <tt>tt element</tt>.</p> I would like to set the font-size of the TT to the same as the containing <p>. This does not seem to...
1
by: pompair | last post by:
Hi, I've been implementing a program that populates winforms DataGridView from an excel sheet (.xlsx-file). The app works ok. Now I'm refactoring it and I've got a feeling that databinding...
12
by: shapper | last post by:
Hello, I have something has follows: <div> ... <table> ... </table>
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.