Reputation: 2615
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.
Upvotes: 0
Views: 208
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
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