Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Inserting a blank row into a DataBound ComboBox?

Posted on 2014-03-28
4
Medium Priority
?
270 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 2000 total points
ID: 39962187
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
ID: 39962300
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
ID: 39962612
Unfortunately not. You either have to go the manual route, or add to the data source.
0
 

Author Closing Comment

by:BlakeMcKenna
ID: 39962899
Thanks...that what I figured!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

972 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