Triggering a command in the view model based on an action in the view
I am working with the Infragistics XamDatagrid.  When an event takes place in the view (new record updated), I would like to call a method in the view model.  I can't just listen to the CollectionChanged event of the source in the VM because that event gets triggered once the user begins editing the new row in the grid.  The RecordUpdating event gets called when the user finished the edits.

What I am doing now is accessing the DataContext directly and calling the method.  The problem is that there is nowhere I can find to attach a Command to the gird that would tigger on the event I am interested, nothing like the Command of a Button.

Generally, what is the best way to call into a VM from a view when there is no Command parameter I can set in the view?
Triggering a command in the view model based on an action in the view
===

I am working with the Infragistics XamDatagrid.  When an event takes place in the view (new record updated), I would like to call a method in the view model.  I can't just listen to the CollectionChanged event of the source in the VM because that event gets triggered once the user begins editing the new row in the grid.  The RecordUpdating event gets called when the user finished the edits.

What I am doing now is accessing the DataContext directly and calling the method.  The problem is that there is nowhere I can find to attach a Command to the gird that would tigger on the event I am interested, nothing like the Command of a Button.

Generally, what is the best way to call into a VM from a view when there is no Command parameter I can set in the view?