deactive datagridview cell select

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
 
K

Ken Tucker [MVP]

Hi,

Try this


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

Ken
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top