Setting Row Height using RowTemplate in Windows DataGridview using C# and VB.Net

Last Reply 7 months ago By pandeyism

Posted 7 months ago

Hi sir,

I am trying to change height of  datagridview's row throught properties RowTemplate .It is not working . Even I did through designer file.But Nothing is happened.How to change it?

Posted 7 months ago

Hi PSowmiya,

First set DataGridView AutoSizeRowsMode property to None.

This will disable row autosizing.

Then set the row height using RowTemplate property.