HighTechTalks DotNet Forums  

PropertyGrid and CollectionEditor events

Dotnet Framework microsoft.public.dotnet.framework


Discuss PropertyGrid and CollectionEditor events in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ST
 
Posts: n/a

Default PropertyGrid and CollectionEditor events - 10-11-2007 , 11:24 PM






Is there a way to create events in collection editor and have the
propertygrid registered for that event? For example, CollectionEditor could
have an OnRemove event that fires when a user click on the Remove button.
I'd like to know when this happens (per item based) so I could have the main
application do something (e.g. update the database).

In another word, what is the best way to synch collection type data with the
database when the collection property is exposed via the propertygrid?

Any ideas is appreciated.

Reply With Quote
  #2  
Old   
Robbe Morris - [MVP] C#
 
Posts: n/a

Default Re: PropertyGrid and CollectionEditor events - 10-12-2007 , 01:29 PM






Check out the link below. You may want to go a much simpler
route to enable you to handle much more complex requirements.

--
Robbe Morris [Microsoft MVP - Visual C#]
..NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes
http://www.eggheadcafe.com/tutorials...d-control.aspx




"ST" <ST (AT) discussions (DOT) microsoft.com> wrote

Quote:
Is there a way to create events in collection editor and have the
propertygrid registered for that event? For example, CollectionEditor
could
have an OnRemove event that fires when a user click on the Remove button.
I'd like to know when this happens (per item based) so I could have the
main
application do something (e.g. update the database).

In another word, what is the best way to synch collection type data with
the
database when the collection property is exposed via the propertygrid?

Any ideas is appreciated.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.