Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have combobox while adding and updating data.

i have problem while updating.
i want to show value assign to that item and also to show other value to that combobox.

For example:

while adding new employee i select department as Testing.
In that combobox there are Developer,Admin and Support as Department.

While Updating i want to show all Department with Selected Department as Testing.

I want to implement in Windows Application of C#.net.

How to do this??
pls help me.
Thanks in advance.
Posted
Updated 25-Sep-12 22:41pm
v2
Comments
anushikaroshan 26-Sep-12 5:50am    
your question is not clear please post question with your simple example
thanks
Vani Kulkarni 26-Sep-12 6:34am    
Please post your code.
SamWakchaure 26-Sep-12 6:45am    
When i will add New employee i will select department from combobox and save it.
Later on if i want to see current department of employee and update it then it should show current department and also to show other department list to combobox.
Vedangi 26-Sep-12 6:48am    
After fetching details of selected employee from database , you can write
CmbBoxName.SelectedItem = strDepartmentName (fetched from db)
Killzone DeathMan 26-Sep-12 7:03am    
I dont understand the question... but to add a Item in ComboBox "mycombobox.Items.Add("myItem");" and to remove all "mycombobox.Items.Clear();" , so you can update you comboBox....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900