Hellohow can I get a cell with only a right mouse click without a prior left mouse click?This has to work for an inactivated cell, no prior activation is done.Thanks
Hello Kasar,
Thank you for reaching out. We recommend handling the XamGrid's PreviewMouseRightButtonDown event and setup a pointer to a CellControl based on the event arguments of the event e.OriginalSource with conjunction of our Utilities class. Let me know if you have any questions.
eg.
private void xgrid1_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) { CellControl cell = Utilities.GetAncestorFromType(e.OriginalSource as DependencyObject, typeof(CellControl), true) as CellControl; var value = cell.Cell.Value; }
Hello Michael,
thanks for your help, that solved my issue.