Solved

Listbox mixed data sources

Posted on 2009-05-06
2
157 Views
Last Modified: 2013-12-17
I have a dropdown list which I am binding a dataset that holds sql query results.

I would also like to hardcode one extra item to the drop downlist.

Is it possible to mix data sources with a dropdown list?


0
Comment
Question by:Mr_Shaw
2 Comments
 
LVL 15

Accepted Solution

by:
mohan_sekar earned 500 total points
ID: 24317271
Yes, Set 'AppendDataBoundItems" to true. Then, in the code behind, add your "item". You will now see your item + the items from the database
0
 

Author Closing Comment

by:Mr_Shaw
ID: 31578577
thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question