Trying to set RowHeight like this(in code):
dgvTruckAvail.RowTemplate.Height = 48;
Doesnt\' work. I also tried to set Height of every colum
Set the AutoSizeRowsMode to AllCells.
Setting the Height
property of each Row does work.
foreach (DataGridViewRow row in dataGridView1.Rows)
{
row.Height = 80;
}
Two ideas:
1) Set RowTemplate.Height before you bind the DGV
2) Set AutoSizeRowsMode = none
Either or both of these might help.
AutoSizeRowsMode property change from none to AllCells
or to any other value.