Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove gridview selector column

I'm sure the answer to this question is incredibly obvious, but for the life of me I can't figure out how to remove the "selector" column from the default winforms gridview. (The column the red arrow is pointing at).

enter image description here

I've tried programmatically removing the column gridview.Columns[0].Remove but that just removed my first data column. It doesn't show up in the "column collection" also, and I've played with all the settings that looked somewhat promising.

Thanks for the help!

like image 500
Mansfield Avatar asked Sep 11 '12 19:09

Mansfield


1 Answers

Set the RowHeadersVisible to False in the GridView (it's a property)

like image 185
Icarus Avatar answered Nov 04 '22 18:11

Icarus