Skip to main content
All docs
V24.2
JS

DataGridExportFormat Enum

Specifies the export format.

Namespace: DevExtreme.AspNet.Mvc

Assembly: DevExtreme.AspNet.Core.dll

Declaration

[JsonConverter(typeof(StringEnumConverter))]
public enum DataGridExportFormat

Members

Name Description
Pdf

Exports data to PDF.

Xlsx

Exports data to XLSX.

Remarks

Use the Formats(IEnumerable<DataGridExportFormat>) method to specify the export format.

```cshtml @(Html.DevExtreme().DataGrid() .Export(export => export .Formats(new[] { DataGridExportFormat.Pdf }) ) )

See Also