DataGridExportCsv exports from DataGrid object to CSV file.
void @DataGridExportCsv(string classname, string savepath, int includeHeader, string delimiter, string encoding);
Parameters
string classname : The class name of DataGrid object
string savepath : The path for exporting csv file
int hasHeader : Header exists or not (0: not exists, 1: exists)
string delimiter : The seperator (CSV : ",")
string encoding : The name of the encoding used to decode or encode the file
Return Value
None
Examples
@DataGridExportCsv("DataGrid1", "C:\\export.csv", 1, ",", "utf-8");
Description : Export from data of 'DataGrid1' object to 'C:\\export.csv' file seperated by comma with header, using 'UTF-8' encoding.
Version Information
Supported Version:
Related Helps
@DataGridComboBoxColumnItemAdd()