1. 程式人生 > 其它 >C#的DataGridView中字型大小

C#的DataGridView中字型大小

技術標籤:C#c#

C#的DataGridView中字型大小的方法:

dataGridView1.RowsDefaultCellStyle.Font = new Font
                ("宋體", 11, FontStyle.Regular);
dataGridView1.ColumnHeadersDefaultCellStyle.Font = new Font
                ("宋體", 11, FontStyle.Regular);