Back to Devexpress

GridOptionsView.GroupFooterShowMode Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-47b1f615.md

latest4.9 KB
Original Source

GridOptionsView.GroupFooterShowMode Property

Gets or sets which groups display footers.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(GroupFooterShowMode.VisibleIfExpanded)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public GroupFooterShowMode GroupFooterShowMode { get; set; }
vb
<DefaultValue(GroupFooterShowMode.VisibleIfExpanded)>
<XtraSerializableProperty>
<DXCategory("Appearance")>
Public Property GroupFooterShowMode As GroupFooterShowMode

Property Value

TypeDefaultDescription
GroupFooterShowModeVisibleIfExpanded

A GroupFooterShowMode enumeration value specifying which groups display footers.

|

Available values:

NameDescription
Hidden

Group footers are not displayed.

| | VisibleIfExpanded |

Group footers are displayed for expanded groups only. They are not displayed if there are no group summaries set up.

| | VisibleAlways |

Group footers are displayed for each group regardless of group rows’ expanded state.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to GroupFooterShowMode
GridView

.OptionsView .GroupFooterShowMode

|

Remarks

Use the GroupFooterShowMode property to specify if and when group footers need to be displayed.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupFooterShowMode 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.

xaf-how-to-extend-the-application-model/CS/EFCore/ExtendModelEF/ExtendModelEF.Win/Controllers/WinGroupFooterViewController.cs#L34

csharp
GridView gridView = gridListEditor.GridView;
gridView.OptionsView.GroupFooterShowMode = GroupFooterShowMode.VisibleAlways;
foreach (IModelColumn modelColumn in View.Model.Columns) {

XDL_simple-ilistserver-implementation-e1307/CS/Demo/Form1.cs#L41

csharp
gridView1.OptionsView.ShowGroupedColumns = true;
gridView1.OptionsView.GroupFooterShowMode = DevExpress.XtraGrid.Views.Grid.GroupFooterShowMode.VisibleAlways;

XDL_simple-ilistserver-implementation-e1307/VB/Demo/Form1.vb#L29

vb
gridView1.OptionsView.ShowGroupedColumns = True
gridView1.OptionsView.GroupFooterShowMode = XtraGrid.Views.Grid.GroupFooterShowMode.VisibleAlways
gridControl1.DataSource = ds

See Also

CustomDrawRowFooter

Group Footer

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace