Skip to main content

MVCxGridViewExportSettings.PageHeader Property

Gets the page header’s settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public GridViewExporterHeaderFooter PageHeader { get; }

Property Value

Type Description
GridViewExporterHeaderFooter

An object that contains the page header’s settings.

Property Paths

You can access this nested property as listed below:

Object Type Path to PageHeader
GridViewSettings
.SettingsExport .PageHeader

Remarks

Use the PageHeader and PageFooter properties to specify custom text content for an exported document page’s header and footer. Both headers and footers provide three sections - with left, centered and right alignment. You can use the following service fields in the header and footer content:

Service Field Description
[Page #] Page number
[Pages #] Total number of pages
[Page # of Pages #] Page number and total number of pages
[Date Printed] Current date
[Time Printed] Current time

You can use the ReportHeader and ReportFooter properties to specify the report header and footer.

Limitations

  • The page header and footer are not exported in DataAware Export Mode.
See Also