Back to Devexpress

GridOptionsView.ShowFooter Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-c8211438.md

latest3.8 KB
Original Source

GridOptionsView.ShowFooter Property

Gets or sets a value specifying whether the view footer is displayed.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool ShowFooter { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property ShowFooter As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to display the View footer; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowFooter
GridView

.OptionsView .ShowFooter

|

Remarks

Use footers to display multiple total summaries. If the GridOptionsMenu.ShowFooterItem option is enabled, end-users can manually display or hide the column footer.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowFooter 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.

winforms-grid-customize-footer-menu-calculate-custom-totals/CS/Form1.cs#L43

csharp
DevExpress.XtraGrid.Design.XViewsPrinting v = new DevExpress.XtraGrid.Design.XViewsPrinting(gridControl1);
gridView1.OptionsView.ShowFooter = true;
gridView1.PopupMenuShowing += new DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventHandler(gridView1_PopupMenuShowing);

winforms-grid-customize-footer-menu-calculate-custom-totals/VB/Form1.vb#L38

vb
Dim v As Design.XViewsPrinting = New Design.XViewsPrinting(gridControl1)
gridView1.OptionsView.ShowFooter = True
AddHandler gridView1.PopupMenuShowing, New PopupMenuShowingEventHandler(AddressOf gridView1_PopupMenuShowing)

See Also

GroupFooterShowMode

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace