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.

Share:
54,339
Grant
Author by

Grant

Updated on March 22, 2020

Comments

  • Grant
    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
    libjup almost 11 years
    it actually is RowHeadersVisible and not RowHeaderVisible; tried to update post but it weren't enough modified characters...
  • Jo Smo
    Jo Smo over 9 years
    A link to the windows forms DataGridView RowHeadersVisible property msdn documentation: msdn.microsoft.com/en-us/library/…
  • Abhay Bh
    Abhay Bh almost 3 years
    Thanks. This helped. I wonder why do we need to click the column though! Any idea how to hide it by-default? Let me know.