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.v19.2.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomGetDefaultFileName event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.