Datagridview - remove part before the first column

Grant picture Grant · Sep 2, 2009 · Viewed 50.7k times · Source

I was wondering if when using the datagridview control you can remove the thing that looks like a column before the 1st column. I think its used to select rows but not sure what its called.

Answer

buda picture buda · Sep 2, 2009

Here is a solution for standard windows controls in C#.

To hide the row headers you can use the property RowHeadersVisible and set it to false.

To make the row headers smaller you can use the property RowHeadersWidth.

I hope this helps you.