0

I'm dynamically creating the columns and rows of my DGV, and then populating the cells with the appropriate values.

Even though at present the contents are too large for the DataGridView (I set ScrollBars to None), my first column is offset to the right, with a black strip there where column 0 should be. What property removes this intruder?

Gonzalo.-
  • 12,512
  • 5
  • 50
  • 82
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

2 Answers2

1

Try to set property RowHeaderVisible in False

yourDgv.RowHeadersVisible = false;
Gonzalo.-
  • 12,512
  • 5
  • 50
  • 82
0

Set the DataGridView property RowHeadersVisible to false.

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862