forcing Validation; WPF, DataGrid, ObservableCollection

Posted by Steve Mills on Stack Overflow See other posts from Stack Overflow or by Steve Mills
Published on 2009-06-16T00:45:34Z Indexed on 2010/06/06 5:02 UTC
Read the original article Hit count: 380

Filed under:
|

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)

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpf-controls