Datagridview - remove part before the first column
54,339
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.
Author by
Grant
Updated on March 22, 2020Comments
-
Grant over 4 years
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.
-
libjup almost 11 yearsit actually is RowHeadersVisible and not RowHeaderVisible; tried to update post but it weren't enough modified characters...
-
Jo Smo over 9 yearsA link to the windows forms
DataGridView
RowHeadersVisible
property msdn documentation: msdn.microsoft.com/en-us/library/… -
Abhay Bh almost 3 yearsThanks. This helped. I wonder why do we need to click the column though! Any idea how to hide it by-default? Let me know.