Click here to Skip to main content
15,921,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

In My Work ,
Combobox.DataContex = Getting Values From Database.

And I Also Want to Add Some Additional Values To That Combobox Without Assigning DataContext Null Or Combobox.Clear().

How Can Do This?
Sadique KT 24-Jul-13 2:48am    
Add your data to the collection retrieved from Database and bind it with your combobox

Something like this might do the trick;
IList<yourtype> list = new List<yourtype>();
ComboBox.DataContext = list;

Hope this helps,
Share this answer
You just need to Update DataSource .

Fedrik is right it should work fine for you.
Share this answer

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