Solved

How can I set the defaul value of a dropdown list to not be a row in the table that is bound to the control.

Posted on 2007-04-04
1
214 Views
Last Modified: 2010-04-15
I am using a tableadapter to fill a dataset and then binding that dataset to a dropdown control.

There are no empty values in the table but I would like for the dropdown list initial setting to not be any of the actual values returned in the table...

How can I set the defualt value of the dropdown list to not be a row in the table that is bound to the control.
0
Comment
Question by:Prysson
1 Comment
 
LVL 20

Accepted Solution

by:
brwwiggins earned 500 total points
ID: 18850533
If you are using 2.0 you can set the AppendDataBoundItems property to true and then just add an item to the dropdownlist collection
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now