Solved

Inserting a blank row into a DataBound ComboBox?

Posted on 2014-03-28
4
249 Views
Last Modified: 2014-03-28
I know how to insert a blank row into a ComboBox that is loaded manually, however, is it possible to insert one into a DataBound ComboBox. I have tried it using the same method as I do manually and it won't allow it.

Thanks!
0
Comment
Question by:BlakeMcKenna
  • 2
  • 2
4 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
Comment Utility
You can't manually add an item once it is bound. How are you populating it? You may be able to add a dummy record to your datasource before you bind to the combobox.
0
 

Author Comment

by:BlakeMcKenna
Comment Utility
I'm populating the combobox as a result of a dataset. I've already considered the dummy record and that's what I may ultimately end up doing. I was just wondering if it was possible somehow to insert a blank row into a bound combobox.
0
 
LVL 52

Expert Comment

by:Carl Tawn
Comment Utility
Unfortunately not. You either have to go the manual route, or add to the data source.
0
 

Author Closing Comment

by:BlakeMcKenna
Comment Utility
Thanks...that what I figured!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

15 Experts available now in Live!

Get 1:1 Help Now