I am using a PDA in which I have a DataGrid that has a list of itemNames , barcode and scanStatus . The user scans the barcode and I search in my DataGrid for matching, and I select the row for the element associated with the barcode. I set scanStatus to true .
I had a problem with the user touching the screen and all rows of the DataGrid got unselected.
So, I tried to handle the events DataGrid Click , DoubleClick and MouseUp . I scroll through the grid where scanStatus is true and calls grid.Select(iteratorIndex) otherwise I call grid.UnSelect(iteratorIndex) .
This re-selects the rows of the scanned item. But the last cell that the user clicked also remains selected. How to deselect this cell? I did a search before publication, and the only thing that remotely corresponded to my situation was this thread , I tried advice there, but that, but that did not answer my question.
winforms compact-framework
One-one
source share