Home Forums WinForms controls Xceed Grid for WinForms Binding to objects

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14984 |

    I have a Bindinglist collection which implements entities which support IDataErrorInfo.

    When I validate my object I can notify the bindinglist that an error occurs. When using the Microsoft grid control, the error is noted in the grid (icon appears, what the problem is etc.)

    This behavior does not appear to be working with XCEED grid control.

    So my question is…

    1. Am I missing something, and it should OR
    2. At some point will you be including support for this interface.

    Imported from legacy forums. Posted by Steven (had 1815 views)

    User (Old forums)
    Member
    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.