[quoted text, click to view] "mark belles" <anonymous@discussions.microsoft.com> wrote in message
news:AE8BF23D-6428-4FAD-9A40-F8922EF8AB93@microsoft.com...
> why do i need to prevent it? it just seems terribly inefficient to watch
the grid call into the descriptor so many times. i would think that once
before drawing, and then perhaps again after changes to a property, assuming
you raised the event using the change service. even displaying a single
property in the grid, the getvalue method is called really frequently.
usually twice everytime the thing paints, or before a UITypeEditor is shown.
lol, so all in all it works yes, just bothers me and i want to know why?
[quoted text, click to view] >
> it's like if i had a control that fired the paint event several times in
succession for no apparent reason. Would that bother you, or at least strike
an inquisitive bone so that you might have to ask? lol, anyways, it's
apparently nothing i can control, so i'm not really worried, i'd still like
to know tho.
Actually, if I saw GetValue called multiple times, say, up to 10, or perhaps
up to 4*the number of objects in the property grid, then I'd assume there
was some reason for it that I simply didn't understand.
If I saw it called, say, 100*the number of objects, I'd wonder if it was a
bug.
--
John Saunders
John.Saunders at SurfControl.com