Add blank item in databound ComboBox

  • Thread starter Thread starter Benny
  • Start date Start date
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!
 
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!
 
Before binding to the datasource, add a new row to the datasource that has
the blank value in it. Then bind.

Robert
 
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
 
Back
Top