I need to save a ViewModel row from a DataGrid (SelectionUnit = "Cell") when changing a DataGridTextColumn. Obviously the DataGridTextColumn does not have any events, but I can hook on the DataGrid CellEditEnding event.
How can I refer to a DataGridRow or to a viewmodel that has been changed in CommandParameter?
<DataGrid> <i:Interaction.Triggers> <i:EventTrigger EventName="CellEditEnding"> <i:InvokeCommandAction Command="{Binding SpreadSettingsChanged}" CommandParameter="?" /> </i:EventTrigger> </i:Interaction.Triggers>
source share