Hiding winforms Datagrid 'selector' column


I would like to remove that default column grey selector column that gets added as the first column in a datagrid,
Is it possible and if so how do I do it ?


Who is Participating?
the-edgeConnect With a Mentor Commented:
set the RowHeadersVisible of the datagrid to False:

DataGrid1.RowHeadersVisible = False

the edge
rjuchAuthor Commented:
No, that gets rid of column headers, ie. first row.. i want to get rid of that grey 'column' on the left
no! this hide the grey column on the left. have you tried it?

the ColumnHeadersVisible property hide/show the column's headers
the RowHeadersVisible property hide/show the row's headers

try it and let me know. i've tried it and it works fine.

the edge
rjuchAuthor Commented:
Sorry man, misread your comment and used columnHEadersVisible :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.