ASPxGridBeforeExportEventArgs.ExportOptions Property
In This Article
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 |
---|---|
Export |
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
See Also