On 11 October 2010 12:34, Maddin, Peter <peter.mad...@pathwest.wa.gov.au>wrote:
> 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. > > Sounds like an odd repaint algorithm, that pays attention to the mouse like that. Mouse actions like clicks or drops, sure... > > > Is there any way of using a binding source to do something like this. > > > > > > *Regards Peter Maddin* > *Applications Development Officer* > *Path**West 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.* > > > -- Meski "Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough" - Adam Hills