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
215 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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