ErrorProvider, IDataErrorInfo, and DataBinding

I am creating my custom objects and collections to support databinding and validation. It works nicely. Now, I am trying to implement IDataErrorInfo, so I can communicate with Winforms ErrorProvider.

What I read is that I can set the datasource of ErrorProvider to my object, but the object has to implement IList also. If this is the case, can I still implement IDataErrorInfo and have set the datasoruce of ErrorProvider to single item object or does it have to be a collection  If it has to be a collection, what the the single object  What will be the patterns that can be used in this case

Thanks in advance,
Suriyanto


Answer this question

ErrorProvider, IDataErrorInfo, and DataBinding

  • ErrorProvider, IDataErrorInfo, and DataBinding