The DataGridExporter interface is designed to export the DataGrid content to a particular format and download it. An instance of DataGridExporter is passed to the setDataGridExporter() method of ExportAction.

DataGridExporter has two standard implementations:

You can create a custom exporter by extending a standard one or by implementing the DataGridExporter interface from scratch, for example:

public class CustomExporter implements DataGridExporter {