I have an Infragistics UltraGrid that is bound to an EntitySpaces entity 
collection via a binding source.

EntitySpaces entities support the IDataErrorInfo interface so that one can do 
validation either via a overriding a validate method in custom classes or by 
using an event handler.

The problem I have is that the method or event handler is hammered. Moving the 
mouse cursor over a grid cell causes the validation method or event handler to 
be called numerous times not just when the data has been edited or is being 
edited. This is not particularly a good idea if one needs to validate cell 
contents via database calls. One could potentially issue database calls 
hundreds of times when only once should be necessary.

The response form Infragistics is

You might want to try caching the result of the validation in your 
IDataErrorInfo implementation.
The grid has to call the validation method whenever it repaints a cell because 
something might have changed to make that cell no longer valid.

Is there any way of using a binding source to do something like this.


Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 9473 3944
Fax : +618 9473 3982
E-Mail : peter.mad...@pathwest.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are 
intended solely for the named recipient's), may be confidential, and may be 
privileged or otherwise protected from disclosure in the public interest. The 
use, reproduction, disclosure or distribution of the contents of this e-mail 
transmission by any person other than the named recipient(s) is prohibited. If 
you are not a named recipient please notify the sender immediately.

Reply via email to