Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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