I want to get the same result with left click when I right click on a cell.
Now when I right click on a cell, I set isSelect is true. But it keeps other selected cell.
I hope the right click like left click, when I select one, the other is deselected.
And when I press Ctrl, I hope it can keep other selected items.
Do you have any idea?
Hello,
What you can do is to clear the SelectedItems.Cells collection so that the XamDataGrid deselects the already selected cells when you right click a new one. When you are holding the Ctrl key, you would not do that in order to keep the current selection.