Skip to main content
.NET Framework 4.6.2+

ExportController.CustomGetDefaultFileName Event

Occurs when executing the ExportController.ExportAction. Allows you to customize the default name of the file to which data is exported.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public event EventHandler<CustomGetDefaultFileNameEventArgs> CustomGetDefaultFileName

Event Data

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

Property Description
FileName Specifies the name of the file to which data is exported.

Remarks

By default, a file name is generated from the caption of the List View from which data is currently exported. Handle this event to provide a custom file name. To get or set the file name to be used by ExportCotnroller, use the event handler’s CustomGetDefaultFileNameEventArgs.FileName parameter.

Refer to the How to: Customize the Export Action Behavior topic, to see an example of handling this event.

See Also