Hi, I have a XamDataGrid where all the data is readonly and CellClickAction="SelectRecord". I'm wiring the RecordActivated event to launch a customControl popup. This works fine but if the user closes the custom control and then clicks on the same record in the datagrid the RecordActivated event is not emitted again. It forces the user to first click on another row (thereby launching the pop up for that record and having to close it) and then click back to the original row to get the pop up to come back. I'd like to be able to capture just clicking on various records, even if the record is the same as the previous one that was selected, to launch my custom control. Thanks.
Hello,
What you could do is set the ActiveRecord property of the XamDataGrid to null when you are closing your custom popup. Another thing you can try is to handle the PreviewMouseLeftButtonDown event of the DataRecordPresenter / DataRecordCellArea element. You can do this with the EventManager.RegisterClassHandler method or with a style and an EventSetter.