I've ran into a problem where i'm catching the MouseDown of my control in the DataGrid Cell before the record is updated as selected.
I've tried to move the event on my control to the mouseup or previewmouseup but these are getting swollowed somewhere.
Is there a way to force the grid to update the selected state before handling my event?
Hello,
I have been looking into the behavior that you have described and I can suggest handling the PreviewMouseDown event of the XamDataGrid. In the event handler you can get the CellValuePresenter of the cell that was clicked, using the e.OriginalSource and the Utilities class and set the IsActive properties of the CellValuePresneter and the CellValuePresneter.Record to true. By doing so when the MouseDown event is fired the Active cell and record in the XamDataGrid will be updated. I have created a sample application for you, which demonstrates how you can implement the approach that I have described.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support