WinForms DataGridView font size

Viewed 153763

How do I change font size on the DataGridView?

11 Answers
    private void UpdateFont()
    {
        //Change cell font
        foreach(DataGridViewColumn c in dgAssets.Columns)
        {
            c.DefaultCellStyle.Font = new Font("Arial", 8.5F, GraphicsUnit.Pixel);
        }
    }

I think it's easiest:

First set any Label as you like (Italic, Bold, Size etc.) And:

yourDataGridView.Font = anyLabel.Font;

In DataGridView, right click properties, In RowTemplate > DefaultCellStyle change the Font Size, It worked for me

Related