|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
deactive datagridview cell selectHi, 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 ----------------------- Show quoteHide quote "martin1" <mart***@discussions.microsoft.com> wrote in message news:BA522FC9-3BBF-4225-96E7-B236C5D78645@microsoft.com... > 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 > > 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? Show quoteHide quote "Ken Tucker [MVP]" wrote: > Hi, > > Try this > > > DataGridView1.DataSource = bsOrderDetails > DataGridView1.Item(0, 0).Selected = False > > Ken > ----------------------- > "martin1" <mart***@discussions.microsoft.com> wrote in message > news:BA522FC9-3BBF-4225-96E7-B236C5D78645@microsoft.com... > > 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 > > > > > > >
dim differences
how to make my own classes show their methods and/or variables while typing? SendKeys problem when using Non-English Windows keyboard layouts Killing a Process if no App. ADO.NET dataset limit Q: Vb.net serial port help GDI+ Graphics Dump VB Module functions not available in 2005 Can you send a "Get" request through a browser? Q: Vb.net serial port help |
|||||||||||||||||||||||