Datagridview - remove part before the first column

WinformsUser InterfaceDatagridviewAppearance

Winforms Problem Overview


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.

Winforms Solutions


Solution 1 - Winforms

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.

Solution 2 - Winforms

Set the RowHeadersVisible property to False and it will work like a charm

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGrantView Question on Stackoverflow
Solution 1 - WinformsbudaView Answer on Stackoverflow
Solution 2 - Winformsuser13101014View Answer on Stackoverflow