How to make items in a drop-down list non-selectable?

S

Stefan

Hi,

How can I make certain entries in my drop-down list non-selectable (and
greyed out if at all possible)?

My list will contain hundreds of entries, and I would like to include some
headings and separators to make the list easier to read, a bit like this:

+-----------------+
| Select a place (this should be the top-entry and be non-selectable)
| ---------- (a separator, non-selectable)
| Countries (a heading, non-selectable)
| Argentina (a normal entry, selectable)
| Chile (etc.)
| Ecuador
| Peru
| ---- (a separator, non-selectable)
| Places (a heading, non-selectable)
| Buenos Aires (a normal entry, selectable)
| Cuzco (etc.)
| Montevideo
| Quito
+---------
 

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