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

Obsolete. 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.v19.2.dll

Declaration

[Obsolete("Use the ExportToCsv method instead.", true)]
public static void WriteCsvToResponse(
    GridViewSettings settings,
    object dataObject,
    bool saveAsFile,
    CsvExportOptions exportOptions
)
<Obsolete("Use the ExportToCsv method instead.", True)>
Public Shared Sub WriteCsvToResponse(
    settings As GridViewSettings,
    dataObject As Object,
    saveAsFile As Boolean,
    exportOptions As CsvExportOptions
)

Parameters

Name Type Description
settings GridViewSettings

A GridViewSettings object that contains GridView settings.

dataObject Object

An object representing the GridView's data source.

saveAsFile Boolean

true to display the File Download dialog; false to display the file with exported data within a page.

exportOptions CsvExportOptions

A CsvExportOptionsEx object that provides export options.

See Also