Select row in dataGrid - WindowsForm

P

PawelR

Hello group,

In my application, I have form with DataGrid. Rows in dataGrid are from
table.

myDG.DataSource = myTable;

In Table I have collumn boolean type.
On Click (Mouse_up event) on the dataGrid I change value in this column

myDG[myDG.CurrentRowIndex,0] = !(bool)myDG[myDG.CurrentRowIndex,0];

and selected cell get focus - value in cell who is clicked.
How disable this focus. I want only change value (checkbox false/true)
without other effects (focus on clicked cell).

Thanks
Pawel R
 

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