deactive datagridview cell select

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

Guest

Hi, All,

The datagridview auto-select first column first row data and the slected
cell background color is blue, so how to turn off the select? or how to
change selected cell backcolor to white?

Thanks
 
Hi,

Try this


DataGridView1.DataSource = bsOrderDetails
DataGridView1.Item(0, 0).Selected = False

Ken
 
Thank you, Ken,

yes it is turn off first column first row selection, but when click it, it
is re-selected, so how to set up dataGridView selection false so that user
cannot select since the app start?
 
Back
Top