Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF DataGrid - Setter not triggered on LostFocus

$
0
0

This issue is about a DataGrid in a xaml UserControl. It has the usual binding of the ItemsSource to an ObservableCollection. The class in the ObservableCollection is a kind of ViewModel with Setter properties (saving changes to the DB).

When the binding is defined as PropertyChanged, it works as expected. The problem occurs when LostFocus is set and I can see a weird behaviour: only a tab from the end of a row to the next makes the trigger fire. After pressing enter or clicking on another row I see the WPF DataGrid updated but the Property Setter doesn't get called at all!

Is it an open bug?



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>