taji01
taji01

Reputation: 2615

Datagridview column header bigger C#

Im using WinForm. I have a datagridview with a couple columns. I want to know how to make the font of each column header bigger.

enter image description here

Upvotes: 0

Views: 208

Answers (2)

user2795347
user2795347

Reputation:

But if thats possible I would recommend to do that by designer (its better if you have styles, etc. in designer.cs)

Upvotes: 1

Owen Pauling
Owen Pauling

Reputation: 11841

You can set the font on the header cell like:

dataGridView.Columns[0].HeaderCell.Style.Font = new Font(... etc

Or for all columns:

dataGridView.ColumnHeadersDefaultCellStyle.Font = new Font(... etc

Upvotes: 2

Related Questions