Skip to main content
Tab

ASPxGridBeforeExportEventArgs.ExportOptions Property

Specifies the export parameters.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public ExportOptionsBase ExportOptions { get; set; }

#Property Value

Type Description
ExportOptionsBase

Provides export settings.

#Remarks

Use the ExportOptions property to specify export parameters for the exported grid data.

protected void ASPxGridView1_BeforeExport(object sender, DevExpress.Web.ASPxGridBeforeExportEventArgs e) {
    switch(e.ExportTarget) {
        case ExportTarget.Pdf:
            var opts = e.ExportOptions as PdfExportOptions;
            opts.PasswordSecurityOptions.PermissionsPassword = "MyCustomPassword";
            break;
        ...
    }
}

#Concept

Export

See Also