WinForms DataGridView font size

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

How do I change font size on the DataGridView?

10条回答
  •  忘掉有多难
    2020-12-09 08:05

    The straight forward approach:

    this.dataGridView1.DefaultCellStyle.Font = new Font("Tahoma", 15);
    

提交回复
热议问题