DataGridView - Hide record selectors

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd like to know how to hide record selectors in a DataGridView. (record
selectors - I do not know if this is the correct name, but this is the name
in an MS Access grid)

Thank you,
 
I'm not sure exactly what you're referring to, but if you're talking about
the RowHeaders (the blank cells at the beginning of each row, used to select
the row), you can set the DataGridView.RowHeadersVisible property to false.

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

Where there's a Will, there's a William.
 
If you want to keep the row headers, but lose the black triangle that
marks the current record, you can 'pad' it out of sight with this
property setting.

this.dataGridView1.RowHeadersDefaultCellStyle.Padding = new
Padding(this.dataGridView1.RowHeadersWidth);

==============
Clay Burch
Syncfusion, Inc.
 
Back
Top