There seems to be a bug in WPF 4.0 DataGrids.
I'm implementing IDataErrorInfo
on my objects, and I have an ObservableCollection
that a datagrid binds to. I have ValidatesOnDataErrors=True
set on the columns but nothing set on the rows. I have UpdateSourceTrigger="PropertyChanged"
The validation works perfectly on a cell by cell level. However, when you leave a cell invalid, go to any other cell and then return to the invalid cell and enter in valid data, the cell becomes valid but the row remains invalid when it should be valid.
INotifyDataErrorInfo
? As far as I know this interface is the recommended way of notifying about validation errors. – Benjamin