How can I order Groups in WPF

后端 未结 2 466
攒了一身酷
攒了一身酷 2020-12-20 11:52

In WPF, the CollectionViewSource allows for sorting (SortDescriptions) and grouping (GroupDescriptions). However, I can\'t find a way to order the groups. Is it possible?

2条回答
  •  自闭症患者
    2020-12-20 12:43

    
        
            
        
        
            
            
        
    
    

    Just add two SortDescriptions.Adding two sort descriptions allows us to sort the groups first and then the items within the groups.

    For more check here

    http://bea.stollnitz.com/blog/?p=17

提交回复
热议问题