Search code examples
winformsuser-interfacedatagridviewappearance

Datagridview - remove part before the first column


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.


Solution

  • 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.