Skip to main content
All docs
V24.2
JS

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

DataGridExportFormat Enum

Specifies the export format.

Namespace: DevExtreme.AspNet.Mvc

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
[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