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

Last Reply 4 months ago By pandeyism

Posted 4 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?

You are viewing reply posted by: pandeyism 4 months ago.
Posted 4 months ago

Hi PSowmiya,

First set DataGridView AutoSizeRowsMode property to None.

This will disable row autosizing.

Then set the row height using RowTemplate property.