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

Last Reply 8 months ago By pandeyism

Posted 8 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 8 months ago

Hi PSowmiya,

First set DataGridView AutoSizeRowsMode property to None.

This will disable row autosizing.

Then set the row height using RowTemplate property.