Select row in dataGrid - WindowsForm

  • Thread starter Thread starter PawelR
  • Start date Start date
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
 
Back
Top