A SingleChoiceAction object that is the Export Action.
The ExportAction is a SingleChoiceAction Action that allows end-users to export data displayed in the current List View to various formats. The Action is active when the current List View’s ListView.Editor supports the IExportable interface and the editor’s control supports the IPrintable interface. The target formats, that the Action can export, are determined by the List Editor to be exported. So, the Action’s ChoiceActionBase.Items list is filled based on the List Editor’s IExportable.SupportedExportFormats property. To customize the Items list after it has been populated, handle the ExportController.ExportActionItemsCreated event.
In a Windows Forms application:
In an ASP.NET Web Forms application:
Currently, the following built-in List Editors implement the IExportable interface:
In Windows Forms applications:
In ASP.NET Web Forms applications:
To activate the Export Action for a custom List Editor, support the IExportable interface in the List Editor class’ declaration.
If you need a custom List Editor to be exported by the Export Action instead of the current List View’s List Editor, set the ExportController.Exportable property.
To determine why the Export Action is currently deactivated or disabled, use the DiagnosticInfo Action. If you need to change the Action’s “active” or “enabled” state in code, use its ActionBase.Active or ActionBase.Enabled property, respectively.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ExportAction property.
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.