Dynamically Update Combo box

Posted by Raj.Trivedi under C# on 5/12/2015 | Points: 10 | Views : 257 | Status : [Member] [MVP] | Replies : 1
Hello Team,

I have a form which has a combo box named as state. I have a scenario where if the user wants to add a state which is not present in the combo box, i have given a button which opens another windows form without closing the current form, where the user can enter new state. Once the user enters the state, he will close the state and come back to original form and here the new state should be made available for the user to select, without refreshing the form, neither clicking a button.

Note : I have binded the combo box on form load with dataset as its datasource.

Basically i want combox box to be updated automatically whenever there is new data been inserted into table, without refreshing or firing any event

"Sharing is Caring"
Please mark as answer if your Query is resolved


Posted by: Rajnilari2015 on: 9/28/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

It should be doable by triggering the Load()/Populate() method of the Combo from the Form Load event.

Thanks & Regards,
RNA Team

Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response