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?

Re: How to get ValueChanged event from PropertyGrid collection using default editor? by VJ

VJ
Tue May 09 16:42:55 CDT 2006

Use the SelectedGridItemChanged. the event args will have the needed stuff

Vijay

"tribbles" <shiretrib@yahoo.com> wrote in message
news:1147199817.742219.135830@e56g2000cwe.googlegroups.com...
> 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?
>



Re: How to get ValueChanged event from PropertyGrid collection using default editor? by tribbles

tribbles
Tue May 09 17:40:54 CDT 2006

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.


Re: How to get ValueChanged event from PropertyGrid collection using default editor? by VJ

VJ
Wed May 10 09:25:38 CDT 2006

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

"tribbles" <shiretrib@yahoo.com> wrote in message
news:1147214454.587379.37330@u72g2000cwu.googlegroups.com...
>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.
>



Re: How to get ValueChanged event from PropertyGrid collection using default editor? by tribbles

tribbles
Wed May 10 15:16:10 CDT 2006

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.


Re: How to get ValueChanged event from PropertyGrid collection using default editor? by VJ

VJ
Thu May 11 09:38:35 CDT 2006

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

VJ

"tribbles" <shiretrib@yahoo.com> wrote in message
news:1147292170.099184.64800@u72g2000cwu.googlegroups.com...
> 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.
>



Re: How to get ValueChanged event from PropertyGrid collection using default editor? by tribbles

tribbles
Thu May 11 13:49:32 CDT 2006

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