DropDownList Question

  • Thread starter Thread starter Will Lastname
  • Start date Start date
W

Will Lastname

My application has a series of dropdownlists with AutoPostBack set to
True and IndexChanged handlers as well. All of the dropdownlists are
bound and dynamically populated.

Is there a way to manually add an entry to a dropdownlist that is
bound? The reason I ask is because if the first item is the one the
user wants to select it is not able to postback since it is already
selected.
 
The bind code first cleans the contents of the dropdown. You will have to
write a for-loop to assign the items instead of binding. That way, you can
insert the entry manually.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top