Home Forums WinForms controls Other WinForms controls Grouping in Wincombobox dropdown Reply To: Grouping in Wincombobox dropdown

User (Old forums)
Member
Post count: 23064

Actually, I have found a way by chipping away at it myself. I did the following in the Load event on the form containing the combo:

grp = New Xceed.Grid.Group(“Group”)
grpm = grp.HeaderRows(0)
grpm.TitleFormat = “%GroupTitle% – %DataRowCount% Set(s)”
grp.Collapse() ‘ not required, but how I wanted it to start off
combo.DropDownControl.GroupTemplates.Add(grp)

This seems to work OK. The combo’s dropdown shows the group headers only, and each can be expanded/collapsed as required. Is it the “right” way to do this?

Imported from legacy forums. Posted by Steve (had 239 views)