Back to Devexpress

GridOptionsPrint.PrintFooter Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsprint-512de163.md

latest3.6 KB
Original Source

GridOptionsPrint.PrintFooter Property

Gets or sets whether to display the view footer in the print/export output. Supports WYSIWYG and Data-aware export mode.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool PrintFooter { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property PrintFooter As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to print/export the View footer; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to PrintFooter
GridView

.OptionsPrint .PrintFooter

|

Remarks

If the PrintFooter option is enabled, the View footer is displayed at the bottom of the last page in the print/export output.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PrintFooter 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-print-custom-draw-content/CS/MyXtraGrid/MyGridView/MyGridViewPrintInfo.cs#L31

csharp
{
    if (!View.OptionsPrint.PrintFooter) return;
    foreach (PrintColumnInfo colInfo in Columns)

winforms-grid-print-custom-draw-content/VB/MyXtraGrid/MyGridView/MyGridViewPrintInfo.vb#L28

vb
Private Sub CustomDrawFooterCells(ByVal graph As IBrickGraphics)
    If Not View.OptionsPrint.PrintFooter Then
        Return

See Also

PrintGroupFooter

ShowFooter

GridOptionsPrint Class

GridOptionsPrint Members

DevExpress.XtraGrid.Views.Grid Namespace