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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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