WPF DATagrid打印组

时间:2013-08-05 06:39:48

标签: wpf printing datagrid grouping

如何使用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获得页面打印

0 个答案:

没有答案