Skip to main content
A newer version of this page is available. .
Tab

ASPxGridBase.BeforeExport Event

Occurs before the grid content is exported.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

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