Back to Devexpress

GridViewBase.ShowGroupedColumns Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridviewbase-a9c6a43d.md

latest2.7 KB
Original Source

GridViewBase.ShowGroupedColumns Property

Gets or sets whether the grouped columns are displayed within a view. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool ShowGroupedColumns { get; set; }
vb
Public Property ShowGroupedColumns As Boolean

Property Value

TypeDescription
Boolean

true to display the grouped columns within a view; otherwise, false.

|

Remarks

When grouping is applied, group rows display the values of grouped columns. By default, grouping columns are not displayed within a View. Their headers are displayed within the Group Panel. This avoids displaying superfluous information.

When the TableView.AllowPartialGrouping option is enabled, grouped columns are displayed within a view regardless of the current value of the GridViewBase.ShowGroupedColumns property.

To make an individual column visible, use the GridColumn.ShowGroupedColumn property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowGroupedColumns property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-implement-custom-grouping/CS/CustomGrouping_CodeBehind/MainWindow.xaml#L22

xml
<dxg:GridControl.View>
    <dxg:TableView AutoWidth="True" ShowGroupedColumns="True"/>
</dxg:GridControl.View>

See Also

Grouping

GridViewBase Class

GridViewBase Members

DevExpress.Xpf.Grid Namespace