How to get ValueChanged event from PropertyGrid collection using default editor?

T

tribbles

When makign a change to a collection using the default editor in the
property grid, you do not get a value change event. Now I know I can
code up my own editor and deal with the valeu change myself, but I have
40 lists I'd have todo this with and it seems like there should be a
way to get the default editor to work... Anyone have any ideas?
 
T

tribbles

I gather that you are suggesting that I track before/after images of
all of my collections and when selection changes for a collection
compare and then determine whether to set the dirty flag(for save) or
not?

I just tried this and if you close the window, the selection change
event does not fire before the check for save...

i.e. You edit the collection hit ok, then close the screen. Your
changes will be lost.

If this is not what you had in mind, I'd love to hear more.
 
V

VJ

yes sure that is what I had in mind.. seems to work with the code we have
here.. I will dig more into it and see if we there is more to this, been a
while since I wrote this

VJ
 
T

tribbles

Part of the problem that I have, that you might not is several
different designers which get hosted by the mainform. Each designer
works with a different host and set of designable objects. The close
and save occurs on the mainForm which then pokes the designers which
then poke the object being designed to save itself. On top of that we
have a mix of microsoft, infragestics and actipro controls.
 
V

VJ

You could try delegate and events to notify changes between objects... if
that is going to be possible...

VJ
 
T

tribbles

Which is back to the original plan of having to code up an editor for
all of the lists. :(
 

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