<p>How do I change font size on the DataGridView?</p>

[{'answer_id': 64052, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 1, 'selected': False, 'text': '<p>Use the Font-property on the gridview. See MSDN for details and samples:</p>\n\n<p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.font.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.font.aspx</a></p>\n'}, {'answer_id': 64167, 'author': 'psamwel', 'author_id': 3089, 'author_profile': 'https://Stackoverflow.com/users/3089', 'pm_score': 7, 'selected': True, 'text': '<pre><code>    private void UpdateFont()\n    {\n        //Change cell font\n        foreach(DataGridViewColumn c in dgAssets.Columns)\n        {\n            c.DefaultCellStyle.Font = new Font("Arial", 8.5F, GraphicsUnit.Pixel);\n        }\n    }\n</code></pre>\n'}, {'answer_id': 5843749, 'author': 'Merin Nakarmi', 'author_id': 717955, 'author_profile': 'https://Stackoverflow.com/users/717955', 'pm_score': 6, 'selected': False, 'text': '<p>In winform datagrid, right click to view its properties. It has a property called DefaultCellStyle. Click the ellipsis on DefaultCellStyle, then it will present Cell Style Builder window which has the option to change the font size.</p>\n\n<p>Its easy. </p>\n'}, {'answer_id': 8784349, 'author': 'sankalp korde', 'author_id': 1138056, 'author_profile': 'https://Stackoverflow.com/users/1138056', 'pm_score': 0, 'selected': False, 'text': '<p>Go to designer.cs file of the form in which you have the grid view and comment the following line: -\n//this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;</p>\n\n<p>if you are using vs 2008 or .net framework 3.5 as it will be by default applied to alternating rows.</p>\n'}, {'answer_id': 11940259, 'author': 'Sylvio', 'author_id': 1596209, 'author_profile': 'https://Stackoverflow.com/users/1596209', 'pm_score': 0, 'selected': False, 'text': '<pre><code>\'   Cell style\n With .DefaultCellStyle\n     .BackColor = Color.Black\n     .ForeColor = Color.White \n     .Font = New System.Drawing.Font("Microsoft Sans Serif", 11.0!,\n   System.Drawing.FontStyle.Regular,\n   System.Drawing.GraphicsUnit.Point, CType(0, Byte))\n      .Alignment = DataGridViewContentAlignment.MiddleRight\n End With\n</code></pre>\n'}, {'answer_id': 14069480, 'author': 'CVKrishna', 'author_id': 1934480, 'author_profile': 'https://Stackoverflow.com/users/1934480', 'pm_score': 2, 'selected': False, 'text': '<p>I too experienced same problem in the DataGridView but figured out that the DefaultCell style was inheriting the font of the groupbox (Datagrid is placed in groupbox). So changing the font of the groupbox changed the DefaultCellStyle too.</p>\n\n<p>Regards</p>\n'}, {'answer_id': 33985972, 'author': 'Ashraf Sada', 'author_id': 2459714, 'author_profile': 'https://Stackoverflow.com/users/2459714', 'pm_score': 5, 'selected': False, 'text': '<p>The straight forward approach:</p>\n\n<pre><code>this.dataGridView1.DefaultCellStyle.Font = new Font("Tahoma", 15);\n</code></pre>\n'}, {'answer_id': 38587195, 'author': 'Sheraz Latif', 'author_id': 6638735, 'author_profile': 'https://Stackoverflow.com/users/6638735', 'pm_score': 2, 'selected': False, 'text': '<p><strong>1st Step:</strong>\nGo to the form where datagridview is added</p>\n\n<p><strong>2nd step:</strong>\nclick 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.</p>\n\n<p><strong>3rd step:</strong>\nclick on that button and select edit columns now click the attributes you want to increase font size.</p>\n\n<p><strong>4th step:</strong>\non 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.</p>\n'}, {'answer_id': 45228577, 'author': 'Niraj Trivedi', 'author_id': 3839344, 'author_profile': 'https://Stackoverflow.com/users/3839344', 'pm_score': 3, 'selected': False, 'text': '<p>For changing particular single column font size use following statement </p>\n\n<p><code>DataGridView.Columns[1].DefaultCellStyle.Font = new Font("Verdana", 16, FontStyle.Bold);</code></p>\n'}, {'answer_id': 50976003, 'author': 'Mahmut K.', 'author_id': 4431768, 'author_profile': 'https://Stackoverflow.com/users/4431768', 'pm_score': 3, 'selected': False, 'text': "<p>I think it's easiest:</p>\n\n<p>First set any Label as you like (Italic, Bold, Size etc.)\n  And:</p>\n\n<pre><code>yourDataGridView.Font = anyLabel.Font;\n</code></pre>\n"}, {'answer_id': 68499819, 'author': 'Julio', 'author_id': 11564937, 'author_profile': 'https://Stackoverflow.com/users/11564937', 'pm_score': 2, 'selected': False, 'text': '<p>In DataGridView, right click properties,\nIn RowTemplate &gt; DefaultCellStyle change the Font Size,\nIt worked for me</p>\n'}]
['https://Stackoverflow.com/questions/64041', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4653/']