How do I load a CSV file into a grid

I just started using dhtmlxGrid. I followed the tutorial which loaded an XML file which went fine. Ithen wanted to load a CSV file which is what happens in my case. I followed the online manual and used the command:

mygrid.load(“file.csv”, doAfterRefresh, csv);

as well as:

mygrid.loadCSVFile(“file.csv”, doAfterRefresh);

as well as:


Neither of those load the data into the grid. The csv file is in the same directory as the html file.

Any help would be appreciated.


You should use mygrid.load(“file.csv”, doAfterRefresh, “csv”);
Please find more information here … ta_loading