Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re-initialize control

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
funs.tummers



Joined: 09 Oct 2007
Posts: 13

PostPosted: Wed Jan 23, 2008 2:05 pm    Post subject: Re-initialize control Reply with quote

Hi,

I have created a ComboBox celleditor. On a celleditor there is an event called "InitializeControl" . I use this event to fill the combobox with the values I need. After the user picks a value from this combobox, I want to set content of the combobox again. Or as a alternative, everytime I want to access the items in the combobox, these items must be get from somewhere (in my case some kind of rulesengine).
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jan 23, 2008 11:00 pm    Post subject: Reply with quote

Rather than adding individual items to the ComboBox in the InitializeControl you might be better off creating a BindingList (System.Collections.Generic.BindingList) with your data in it and setting this as the ComboBox DataSource. Then you can change the values in the BindingList and all of the ComboBoxes bound to it will automatically update.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
funs.tummers



Joined: 09 Oct 2007
Posts: 13

PostPosted: Thu Jan 24, 2008 11:08 am    Post subject: Reply with quote

Don't you mean the System.ComponentModel.BindingList?
But thanks for the hint, it brings me much closer to the solution I'm looking for.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jan 24, 2008 9:45 pm    Post subject: Reply with quote

Oops sorry - it does live in System.ComponentModel Embarassed
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group