Back to Devexpress

GridColumn.ShowGroupedColumn Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcolumn-cee03110.md

latest2.7 KB
Original Source

GridColumn.ShowGroupedColumn Property

Gets or sets whether to display the grouped column within the 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 DefaultBoolean ShowGroupedColumn { get; set; }
vb
Public Property ShowGroupedColumn As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowGroupedColumn 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-customize-column-headers-based-on-location/CS/CustomColumnHeader/MainWindow.xaml#L41

xml
<dxg:GridColumn Header="Name" FieldName="Name"/>
<dxg:GridColumn Header="Original Header" FieldName="Group" GroupIndex="0" ShowGroupedColumn="True"/>

See Also

ShowGroupedColumns

GridColumn Class

GridColumn Members

DevExpress.Xpf.Grid Namespace