Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
how to make RecordActivated event emit every time a record is clicked
posted

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.

Parents
No Data
Reply
  • 69686
    Verified Answer
    posted

    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.

Children
No Data