There is a DataGrid in which objects from ObservableCollection are displayed.

At the moment CellEditingEnding the field should change and the method of calculation from columns should be called. xaml all Bindings are listed. It works through time. That is: let's say in the required field we specify the value: 1 if you change it to 2, it counts as if there was 1 if you specify any other value as it would be if there was 2, and so on

DataGrid.Items.Refresh cannot be used inside CellEditingEnding

    1 answer 1

    Set UpdateSourceTrigger to PropertyChanged , where you are attached to the fields of the object:

     <DataGridTextColumn Binding="{Binding Path=Text, UpdateSourceTrigger=PropertyChanged}"/> 
    • You have greatly helped, thank you very much. I have already read about the customization of the collection, the processing of the model, there is no answer anywhere on the Internet. - ParanoidPanda
    • @ParanoidPanda, please. Yes, sometimes you can go far in search of a solution when it is very close. - Gardes