Reputation: 9
I have a problem using a DataGridView in Visual Studio.
This is the problem. There is no space between columns:
I want to add space automatically between columns:
So, which property should I use?
Upvotes: 0
Views: 619
Reputation: 57
defaultcellstyle.padding should do, here's an example:
Padding newPadding = new Padding(0, 1, 0, CUSTOM_CONTENT_HEIGHT); this.dataGridView1.RowTemplate.DefaultCellStyle.Padding = newPadding;
Upvotes: 1