I’m trying to produce a context sensitive right-click menu so that when the user right-clicks on the DataGridControl I can pick up what row and column they’ve clicked on and produce a custom context menu.
I’m using the ContextMenuOpening event to capture the right-click and that’s working great however the DataGridControl.CurrentItem property doesn’t contain the item over which the mouse was right-clicked. It contains either null (if no item has yet been selected) or the last item that was selected.
So, is there any way to make the DataGridControl select an item when the right mouse button is clicked?
Thanks in advance for any help, Cheers, Terry.
Imported from legacy forums. Posted by Terry (had 4598 views)