.NET Core 3.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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.v20.1.dll

Declaration

public event EventHandler<CustomGetDefaultFileNameEventArgs> CustomGetDefaultFileName
Public Event CustomGetDefaultFileName As EventHandler(Of CustomGetDefaultFileNameEventArgs)

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