I wanna make the left hand border of the datagridview object disappear. Any suggestions?
Asked
Active
Viewed 2,508 times
3
-
Could you provide a screenshot of what you actually mean? – Neil Knight Nov 23 '11 at 15:39
2 Answers
6
In case it is WinForms the property is called RowHeadersVisible
. Set that to false and you won't see the left hand side border.

Fischermaen
- 12,238
- 2
- 39
- 56
4
If you 're talking about the row headers, in the properties pane set RowHeadersVisible
to False
.

Ioannis Karadimas
- 7,746
- 3
- 35
- 45
-
There is grey index like column on the left hand side of the datagrid, I tried what you said, but that grey portion didn't disappear. – PixelatedPixie Nov 23 '11 at 15:49
-
Do you have the `AutoSizeRows` property set to `AllHeaders`? – Ioannis Karadimas Nov 23 '11 at 15:55
-
I'm a newbie and I don't have the privelege to upload pics yet. But here's a picture I found on Google Images, the grey column that also has an asterix to indicate that that's the selected row. Is it possible to make that disappear? http://bit.ly/sKB4ls – PixelatedPixie Nov 23 '11 at 15:59
-
Have you tried saving your form, and reloading it, just in case it's a Visual Studio glitch? – Ioannis Karadimas Nov 23 '11 at 16:04
-
@IoannisKaradimas: Thanks, it worked when I reopened and built it again. – PixelatedPixie Nov 23 '11 at 17:59