A
Andrus
I have invoice editing WinForms form containing TextBox controls and
DataGridView.
Text boxes are bound to entity properties, grid is bound to BindingList of
entities.
Entitites are returned from DLinq query and implement
INotifyPropertyChanged.
If user closes form I need to check for unsaved changes are present and
prompt user to save them.
How to check that DataContext has pending changes ?
I havent found such function.
So should I add property IsDirty to form and set/reset it manually by
trapping every property change event ?
Or is it possible to examine DataContext for pending changes ?
Andrus.
DataGridView.
Text boxes are bound to entity properties, grid is bound to BindingList of
entities.
Entitites are returned from DLinq query and implement
INotifyPropertyChanged.
If user closes form I need to check for unsaved changes are present and
prompt user to save them.
How to check that DataContext has pending changes ?
I havent found such function.
So should I add property IsDirty to form and set/reset it manually by
trapping every property change event ?
Or is it possible to examine DataContext for pending changes ?
Andrus.