Add blank item in databound ComboBox

B

Benny

Does anyone know how I would go about adding a blank value to the list
of items in a ComboBox that has a set datasource? Thank in advance!
 
B

Bob Graham

How about:

Union All

Select ''

In your select query? Unless it's numeric.

Bob

-----Original Message-----
From: Benny [mailto:[email protected]]
Posted At: Thursday, January 18, 2007 9:03 AM
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: Add blank item in databound ComboBox
Subject: Add blank item in databound ComboBox

Does anyone know how I would go about adding a blank value to the list
of items in a ComboBox that has a set datasource? Thank in advance!
 
R

Robert May

Before binding to the datasource, add a new row to the datasource that has
the blank value in it. Then bind.

Robert
 
B

Benny

Thank you very much. This worked :)

Robert said:
Before binding to the datasource, add a new row to the datasource that has
the blank value in it. Then bind.

Robert
 

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

Top