WinForms DataGridView font size

前端 未结 10 1842
半阙折子戏
半阙折子戏 2020-12-09 07:47

How do I change font size on the DataGridView?

10条回答
  •  一生所求
    2020-12-09 08:07

    Go to designer.cs file of the form in which you have the grid view and comment the following line: - //this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;

    if you are using vs 2008 or .net framework 3.5 as it will be by default applied to alternating rows.

提交回复
热议问题