List Box Heading

Discussion in 'ASP .Net' started by jack-e, Feb 12, 2006.

  1. jack-e

    jack-e Guest

    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
     
    jack-e, Feb 12, 2006
    #1
    1. Advertising

  2. 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



    "jack-e" wrote:

    > 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
    >
    >
     
    =?Utf-8?B?RFdT?=, Feb 12, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmltIEhlYXZleQ==?=

    DataGrid Heading

    =?Utf-8?B?SmltIEhlYXZleQ==?=, Dec 10, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,480
    Curt_C [MVP]
    Dec 10, 2004
  2. =?Utf-8?B?ZGVubmlzdDY4NQ==?=

    Format text as a heading

    =?Utf-8?B?ZGVubmlzdDY4NQ==?=, Nov 22, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    547
    Mark Wills
    Sep 14, 2006
  3. dm1608
    Replies:
    1
    Views:
    1,632
    Eliyahu Goldin
    Feb 19, 2006
  4. Gnarlodious
    Replies:
    4
    Views:
    17,671
    elizas
    May 5, 2010
  5. List Box Heading

    , Feb 12, 2006, in forum: Javascript
    Replies:
    1
    Views:
    110
    Janwillem Borleffs
    Feb 12, 2006
Loading...

Share This Page