winform DataGridView设置行高

dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing;
dataGridView1.ColumnHeadersHeight = 80;
dataGridView1.RowTemplate.Height = 80;
this.dataGridView1.DefaultCellStyle.Font = new Font("微软雅黑", 14);

 

 
posted @ 2024-01-08 14:57  ziff123  阅读(465)  评论(0编辑  收藏  举报