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
1915
Routed event CellUpdatedEvent does not fire on cell value change in XamDataGrid 10.2
posted

I am using XamDataGrid 10.2 and handling grid routed events in a ViewModel by linking routed event to a ICommand as someone suggested.  I am handling both CellUpdatingEvent and CellUpdatedEvent and what I see is CellUpdatingEvent fires just fine once the cell leaves 'edit mode' however CellUpdatedEvent never gets executed. The problem here is data contained in CellUpdatingEventArgs (DataRecord.DataItem) does not contain modified value - I am assuming because the update process has not finished yet at that point.  Infragistics, any insight into this?

Secondary question is how do I force grid to send either notification without having to click on a different cell/row in the grid? There was a way to get around that same issue in Winforms version of the UltraWinGrid. This is my grid definition:

 

<igDP:XamDataGrid x:Name="xamDataGrid"

behaviors:XamDataGridBehaviors.CellUpdatedCommandBehavior="{Binding CellUpdatedCommandBehavior}"

behaviors:XamDataGridBehaviors.CellUpdatingCommandBehavior="{Binding CellUpdatingCommandBehavior}"

UpdateMode="OnUpdate">

  • 138253
    Offline posted

    Hello Andre,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

  • 138253
    Offline posted

    Hello Andre,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamDataGridCellUpdatedCommand.zip