How do I change font size on the DataGridView?
' Cell style
With .DefaultCellStyle
.BackColor = Color.Black
.ForeColor = Color.White
.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.0!,
System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
.Alignment = DataGridViewContentAlignment.MiddleRight
End With
1st Step: Go to the form where datagridview is added
2nd step: click on the datagridview at the top right side there will be displayed a small button of like play icon or arrow to edit the datagridview.
3rd step: click on that button and select edit columns now click the attributes you want to increase font size.
4th step: on the right side of the property menu the first on the list column named defaultcellstyle click on its property a new window will open to change the font and font size.
I think it's easiest:
First set any Label as you like (Italic, Bold, Size etc.) And:
yourDataGridView.Font = anyLabel.Font;
For changing particular single column font size use following statement
DataGridView.Columns[1].DefaultCellStyle.Font = new Font("Verdana", 16, FontStyle.Bold);