如何使用Paginator打印带有组头的WPF DataGrid
我像这样设置分组
dim _BindingSrcCollectionView As ComponentModel.ICollectionView
_BindingSrcCollectionView = CollectionViewSource.GetDefaultView(Dt)
For Each GroupColName As String In GroupingColumns
_BindingSrcCollectionView.GroupDescriptions.Add(New PropertyGroupDescription(GroupColName))
Next
BindingSrcCollectionView.Refresh()
PART_BASE_DATAGRID.ItemsSource = _BindingSrcCollectionView
我可以像这样通过collectionView进行Itrate
For Each row As DataRowView In _BindingSrcCollectionView
但没有获得群组标题
我无法使用print visual,我想从DataGrid获得页面打印