Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 702879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:46:10+00:00 2026-05-14T03:46:10+00:00

I have a bound dropdown list populated with a table of names through a

  • 0

I have a bound dropdown list populated with a table of names through a select, and databinding. it shoots selectedindexchanged that (through a postback) updates a certain gridview.

What happens is, since it runs from changing the index, the one that always comes selected (alexander) can only me chosen if you choose another one, then choose alexander. poor alexander.

What I want is to put a blanc option at the beginning (default) and (if possible) a option as second.

I can’t add this option manually, since the binding wipes whatever was in the dropdown list and puts the content of the datasource.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:46:11+00:00Added an answer on May 14, 2026 at 3:46 am

    Set the AppendDataBoundItems property to True. Add your blank, then data bind.

    ddl.AppendDataBoundItems = true;
    ddl.Items.Add("Choose an item");
    ddl.DataSource = foo;
    ddl.DataBind();
    

    The AppendDataBoundItems property
    allows you to add items to the
    ListControl object before data
    binding occurs. After data binding,
    the items collection contains both the
    items from the data source and the
    previously added items.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DropDownList that is populated from a datasource. After it is bound,
I have a comboBox that is bound to a list of strings from my
I have a dropdown list which has items bound to it using sql datasource.
I have a div that I have bound the jQuery hover event to activate
I have a bound form in microsoft access that allows a user to add
I have a repeater with a literal, a dropdown list, and a button. <asp:Repeater
This is probably something really stupidly simple.. I have a drop down list bound
I have a ComboBox that is bound to an ObservableCollection of custom UserControls. Each
Here are my requirements: I have a dropdown list and text box (appName and
I have a listview that is bound to a sqldatasource. I know how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.