• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 645
  • Last Modified:

DropDownList with subheadings

I currently have a classic asp application that has a dropdownlist as pictured below.  Is there anyway to duplicate this in ASP.NET
Dropdownlist.png
0
us1975mc
Asked:
us1975mc
2 Solutions
 
Shaun KlineLead Software EngineerCommented:
One way is to override the rendering of the control, such that the option groups are used.
As a possible option, create a new class (possibly inherited from ListItem and INamingContainer) for a list item group that contains a collection of list items. In the render event for the control, output the option group HTML tag "<optgroup>" and then call all list items in the collection for the list items.
0
 
us1975mcAuthor Commented:
THANKS!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now