Looking for the ErrorProvider a grid uses when bound to IBindingLi

G

Guest

Hi,

I bind a data adapter (which implements the IBindingList interface)
to a data grid. For the data rows there is also an adapter which
implements the ICustomTypeDescriptor, IEditableObject and IDataErrorInfo
interfaces.

All works fine to bind my custom data types to the grid using my adapters.

Now it comes to validation: my IDataErrorInfo code returns the error message
strings for the columns. If I do that, the data grid automatically shows an
icon in each grid cell where the validation failed.

I did not set or use an error provider object.

My problem: I want to use another icon. So I need the error provider instance
that the grid uses. But what instance does the grid use? Does anyone know
where this error provider instance comes from and how can I access it?

Thanks,
Michael.
 
G

Guest

You may have to add an Error Provider control to the Form and use that
explicitly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top