Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
Sir,

I have two categories in combobox, Movies and News.

How do I add sub-categories when I select movies to become movie1 and movie2 sub-categories.
Posted
Updated 13-Jun-18 23:43pm
v2
Comments
Dalek Dave 15-Nov-10 7:03am    
Edited for Spelling, Grammar and Syntax.

A non-elegant solution for starting, is to create an inner combobox, as a comboitem of an outter combobox. You can style them to improve the look of it, still, a treeview as was already said is the way to go and a must have skill with wpf/xaml development
 
Share this answer
 
v2
Comments
[no name] 14-Jun-18 6:10am    
This was answered almost eight years ago.
I think what you really want is a TreeView. A ComboBox is not the appropriate control to display selectable sub-items.
 
Share this answer
 
Comments
Tarun.K.S 15-Nov-10 8:50am    
Exactly! its not possible to display sub-items to items of a combobox.

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