views:

138

answers:

1

Hi,

I'm using a DataGridView in a WinForms project with the AutoSizeRowsMode set to "AllCells". I would like to increase the space between rows, but setting the DividerHeight in the RowTemplate has no effect. Does anyone know how to increase the space between rows when the AutoSizeRowsMode is a value other than "None"?

Thanks!

A: 

I figured it out. I was able to get this like I wanted by setting the padding on the DefaultCellStyle.

OneSource