ASPxGridViewExportSettings.PageHeader Property
Gets the page header’s settings.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
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 |
---|---|
ASPxGridView |
|
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 |
<dx:ASPxGridView ID="grid" runat="server" DataSourceID="CustomerReportsDataSource">
<SettingsExport ExcelExportMode="WYSIWYG">
<PageFooter Center="[Page #]" />
<PageHeader Right="[Date Printed]" Left="Developer Express Inc."/>
</SettingsExport>
<%--...--%>
</dx:ASPxGridView>
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 Mode.
See Also