GridViewExtension.WriteCsvToResponse(GridViewSettings, Object, Boolean, CsvExportOptions) Method
In This Article
OBSOLETE
Use the Export
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.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
[Obsolete("Use the ExportToCsv method instead.", true)]
public static void WriteCsvToResponse(
GridViewSettings settings,
object dataObject,
bool saveAsFile,
CsvExportOptions exportOptions
)
#Parameters
Name | Type | Description |
---|---|---|
settings | Grid |
A Grid |
data |
Object | An object representing the Grid |
save |
Boolean | true to display the File Download dialog; false to display the file with exported data within a page. |
export |
Csv |
A Csv |
See Also