All docs
V20.2
21.1 (EAP/Beta)
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
Tab

ASPxGridBase.BeforeExport Event

Occurs before the grid content is exported.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public event ASPxGridBeforeExportEventHandler BeforeExport

Event Data

The BeforeExport event's data class is ASPxGridBeforeExportEventArgs. The following properties provide information specific to this event:

Property Description
ExportOptions Specifies the export parameters.
ExportTarget Gets the export format.

Remarks

Use the BeforeExport event to customize export settings before grid content is exported.

The following example illustrates how to specify a password for exported PDF documents. This password gives users access to the documents' permission settings.

<dx:ASPxGridView ID="ASPxGridView1" runat="server" OnBeforeExport="ASPxGridView1_BeforeExport">
</dx:ASPxGridView>

Online Demo

ASPxGridView - Export Data

See Also