It seems to be simple to achieve:
printer.RowHeight = DGVPrinter.RowHeightSetting.CellHeight;
Please, follow the link to the article, go to the end of it to find
Comments and Discussion section. There ask a question ;)
You can use
DataGridViewRow.Height[
^] or
DataGridViewRow.MinimumHeight[
^] property too.
DataGridViewRow row = dataGridView.Rows[0];
row.Height = 15;
DataGridViewRow row = dataGridView.Rows[1];
row.MinimumHeight = 40;