forcing Validation; WPF, DataGrid, ObservableCollection
- by Steve Mills
I have a WPF DataGrid. I read a csv file and build an ObservableCollection of objects.
I set the DataGrid.ItemsSource to the Collection. I would like to then force a RowValidation on every row in the DataGrid. If I, playing user, edit a cell, the RowValidation fires, all is well. But the Validation does not fire on the initial load. Is there some way I can call ??ValidateRow?? on a row? on every row?
(C#, WPF, VS2008, etc)