开发者

Group Items in a listbox alphabetically

开发者 https://www.devze.com 2023-03-15 15:17 出处:网络
I 开发者_如何学Gohave a WPF ListBox which shows a list of employees names. I want to group and sort them alphabetically. Is this possible? if so, how? Also, i will be required to style the headers (li

I 开发者_如何学Gohave a WPF ListBox which shows a list of employees names. I want to group and sort them alphabetically. Is this possible? if so, how? Also, i will be required to style the headers (like the attached image) Could some1 guide me as to how i can achieve this. Thanx!

Group Items in a listbox alphabetically


You can group items by adding GroupDescription to the CollectionView. See this related question:

How do I group items in a WPF ListView

Also, google GroupDescription for many more examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号