all groups > asp.net > february 2006 >
You're in the

asp.net

group:

List Box Heading


List Box Heading jack-e
2/11/2006 10:17:04 PM
asp.net: Hello,

How do I insert non-selectable headings into a list box?

e.g. if i had a list box displaying cities around the world - how could
i insert the country's name above each goup of cities

Australia (heading)
Sydney
Melbourne
New Zealand (heading)
Auckland
Wellington

Thanks!

Jack
RE: List Box Heading DWS
2/12/2006 1:36:28 PM
Jack -e

I don't think thats possible to make an unselectable listitem, without using
a javascript. A work around would be to just redisplay the form if a country
is selected with a message like "Please select a city in Spain."

Good Luck
DWS



[quoted text, click to view]
AddThis Social Bookmark Button