DataGridView setting row height doesn't work

前端 未结 4 1023
一生所求
一生所求 2021-01-12 20:00

Trying to set RowHeight like this(in code):

dgvTruckAvail.RowTemplate.Height = 48;

Doesnt\' work. I also tried to set Height of every colum

4条回答
  •  醉梦人生
    2021-01-12 20:26

    Setting the Height property of each Row does work.

    foreach (DataGridViewRow row in dataGridView1.Rows)
    {
        row.Height = 80;
    }
    

提交回复
热议问题