I am new to the WPF ,and i use it to build a point of sale system.
I have a DataGrid
control in the main window bound to an ObservableCollection>
Almund is right. UpdateSourceTrigger=LostFocus
will work best in you case. And as you have mentioned that your source is updating when you move to next row, that means I guess, you are using ObservableCollection
to bind your DataGrid
's ItemSource
. Because that is what which you need to achieve what you want.
You need to add "UpdateSourceTrigger=LostFocus"
to each of your columns.