Home Forums WinForms controls Xceed Grid for WinForms Binding to objects Reply To: Binding to objects

User (Old forums)
Post count: 23064

1- This is not directly supported.

However, you can subscribe to the ValidationError event (or override OnValidationError if you are deriving), and in the event handler, transfer the content of ((IDataErrorInfo)DataRow.SourceObject).Error into DataRow.ErrorDescription and set e.CancelEdit to false.

Do not forget to set back DataRow.ErrorDescription to string.Empty in the EditCanceled and EditEnded events (or override OnEditCanceled and OnEditEnded if you derive).

2- We do not intend at this point to provide support for that, but we have added this to our feature request DB.

Imported from legacy forums. Posted by André (had 2981 views)