如何根据日期对列进行分组? XAML

问题描述

在我的程序,我加载整个表和我想组基于日期的所有列。我不知道该怎么做在XAML。对不起我的英语不好。我的桌子看起来像这样:

enter image description here

罐的东西可以从该级表中的实现的呢?

解决方法

您可以使用 CollectionViewSource 对数据进行排序、过滤和分组,然后将其绑定到 ItemsSourceListView

查看以下文章:

How to: Group Items in a ListView That Implements a GridView

ListView grouping