anas
anas

Reputation: 9

DataGridView in VB space between columns

I have a problem using a DataGridView in Visual Studio.

This is the problem. There is no space between columns:

This is the problem there is no space between columns

I want to add space automatically between columns:

I want to add space automatically between columns

So, which property should I use?

Upvotes: 0

Views: 619

Answers (1)

MrNacer2007
MrNacer2007

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

Related Questions