GridViewBase.PrintGroupRowStyle Property
Gets or sets the style applied to group rows when the grid is printed. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
| Type | Description |
|---|---|
| Style | A Style object that represents the style applied to group rows when the grid is printed. |
Remarks
The PrintGroupRowStyle property specifies the style that groups together properties, resources, and event handlers and shares them between instances of the TextEdit type.
Target Type: TextEdit
Data Context: DevExpress.Xpf.Printing.RowContent. Its Content property returns a GroupRowData object (a RowData object in the indent cells of data rows). Group summary cells use a DevExpress.Xpf.Grid.PrintGroupRowCellInfo object as the data context if the TableView.PrintGroupSummaryDisplayMode property is set to AlignByColumns.
Prefix binding paths with Content to access the group row’s data. The following example binds the background of printed group rows to the GroupRowBackground property of the view model. The Column.DataContext property returns the grid control’s data context:
<dxg:TableView.PrintGroupRowStyle>
<Style TargetType="dxe:TextEdit">
<Setter Property="Background" Value="{Binding Content.GroupValue.Column.DataContext.GroupRowBackground}"/>
</Style>
</dxg:TableView.PrintGroupRowStyle>
To learn more, see Appearance Customization.