Font size in datagrid

  • Thread starter Thread starter Tor Inge Schulstad
  • Start date Start date
T

Tor Inge Schulstad

Hi.

I need to change the fontsize and vertical alignment of the text in a
datagrid. It's a Windows forms application, and I'm using tablestyles to
format my datagrid. I do not need to format cells or rows individually.
The settings are going to be used on the entire daragrid.

Can anyone guide me in the right direction to do this?

__
Tor Inge
 
Tor said:
Hi.

I need to change the fontsize and vertical alignment of the text in a
datagrid. It's a Windows forms application, and I'm using tablestyles to
format my datagrid. I do not need to format cells or rows individually.
The settings are going to be used on the entire daragrid.

Can anyone guide me in the right direction to do this?

__
Tor Inge

Found that I can assign a new font directly to the datagrid like this,
and still apply custom formating with the tablestyles.

dgdMyGrid.Font = New Font ("Arial", 16)

Still need to do the aligning though..
__
Tor Inge
 

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

Back
Top