Skip to main content
A newer version of this page is available. .

GridViewExtension.WriteCsvToResponse(GridViewSettings, Object, String, CsvExportOptions) Method

OBSOLETE

Use the ExportToCsv method instead.

Exports the grid’s data to a file in CSV format with the specified export options, and writes it to the Response in binary format.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

[Obsolete("Use the ExportToCsv method instead.", true)]
public static void WriteCsvToResponse(
    GridViewSettings settings,
    object dataObject,
    string fileName,
    CsvExportOptions exportOptions
)

Parameters

Name Type Description
settings GridViewSettings

A GridViewSettings object that contains GridView settings.

dataObject Object

An object representing the GridView’s data source.

fileName String

A String value that specifies the target file name.

exportOptions CsvExportOptions

A CsvExportOptionsEx object that provides export options.

See Also