Back to Devexpress

GridControl.AutoExpandAllGroups Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-9df16f06.md

latest2.7 KB
Original Source

GridControl.AutoExpandAllGroups Property

Gets or sets whether all group rows are automatically expanded after each grouping operation. 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 AutoExpandAllGroups { get; set; }
vb
Public Property AutoExpandAllGroups As Boolean

Property Value

TypeDescription
Boolean

true to expand all group rows after each grouping operation; otherwise, false.

|

Remarks

To manually expand all group rows at all nesting levels, use the GridControl.ExpandAllGroups method. To collapse all groups, use the GridControl.CollapseAllGroups method.

To learn more, see Expanding and Collapsing Group Rows.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoExpandAllGroups 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-call-begindataupdate-and-enddataupdate-at-view-model-level/CS/BeginEndDataUpdate/MainWindow.xaml#L20

xml
</Grid.RowDefinitions>
<dxg:GridControl ItemsSource="{Binding Source}" AllowLiveDataShaping="True" AutoExpandAllGroups="True" >
    <dxg:GridControl.View>

See Also

ExpandAllGroups()

CollapseAllGroups()

Grouping

GridControl Class

GridControl Members

DevExpress.Xpf.Grid Namespace