Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to hide combobox first item comboboxis databinding

What I have tried:

combobox1.items.removeat(combobox1.items = 0);
Posted
Updated 12-Dec-16 14:43pm

1 solution

You can't "hide" it. You can only remove it.

The problem is the source of the data the combo is using. If it's just a list of items you added to the combo, OK, just don't add the item you want to "hide".

If it's databound to some source, you have to remove the items you want to "hide" from the datasource.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900