Mansfield
Mansfield

Reputation: 15150

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!

Upvotes: 8

Views: 10579

Answers (1)

Icarus
Icarus

Reputation: 63966

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

Upvotes: 18

Related Questions