views:

2866

answers:

2

How do i change font size on the datagridview?

+1  A: 

Use the Font-property on the gridview. See MSDN for details and samples:

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.font.aspx

Espo
+2  A: 
    private void UpdateFont()
    {
        //Change cell font
        foreach(DataGridViewColumn c in dgAssets.Columns)
        {
            c.DefaultCellStyle.Font = new Font("Arial", 8.5F, GraphicsUnit.Pixel);
        }
    }
Peter Samwel