|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP.Net/VB.Net - How to add a blank data to a combo box?
is it possible to add a blank data to a combo box?so when the form loads,it display a blank in combo box...
|
|
#2
|
||||
|
||||
|
Do you refer no data in the dropdownlist?
What is your goal in this case? |
|
#3
|
|||
|
|||
|
How to add a blank data to a combo box?
i want to have a blank data in the first item of the combo box
|
|
#4
|
||||
|
||||
|
duplicate post deleted
__________________
Wolffy ------------------------ Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary. Not FDIC insured Last edited by Wolffy : August 20th, 2008 at 08:30 AM. |
|
#5
|
||||
|
||||
|
You can add the blank first item in the DataBinding event handler:
this.DropDownList1.Items.Add(String.Empty) Also, set the AppendDataBoundItems property to true: this.DropDownList1.AppendDataBoundItems = true; |
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > ASP.Net/VB.Net - How to add a blank data to a combo box? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|