Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1715
Issue with IDataErrorInfo support
posted

I am using the 9.2.20092.2001 hot fix of the 9.2 libraries and am having a hard time getting IDataErrorInfo support to work correctly. I have a class called Data that implements INotifyPropertyChanged and IDataErrorInfo. My IDataErrorInfo properties both have a Console.WriteLine in there to let me know when they are being called.

When the data is first bound to the grid, the Error property is called multiple times. However, the this[string columnName] property is never called. Whenever I update a property, nothing happens. Should I be notifying when my Error property changes? Is there a sample somewhere on how to properly implement IDataErrorInfo so that the XamDataGrid supports it.

Edit: I am setting the properties:
DataGrid.FieldLayoutSettings.DataErrorDisplayMode = DataErrorDisplayMode.Default;
DataGrid.FieldLayoutSettings.SupportDataErrorInfo = SupportDataErrorInfo.RecordsAndCells;

Thanks,
-Szymon

Parents Reply Children
No Data