The TWebDbGrid.SaveToFile() method generates an incorrect header row. Please check the attached csv file.
LVD_Selectie_opnamen.zip (842 Bytes)
The TWebDbGrid.SaveToFile() method generates an incorrect header row. Please check the attached csv file.
LVD_Selectie_opnamen.zip (842 Bytes)
Without any further detail, I cannot deduct from just this CSV file what could be wrong.
I added a grid.SaveToCSV() to the DBGrid in demo Demo\Basics\DBGrid and this CSV output is correct.
Was retested where the Demo\Basics\DataSet demo was used, WebDBGrid was added without any initialization.
It got filled correct from the data
and the header row is exported correct:
_Species_No;_Category;_Common_Name;_Species_Name;Length__cm;_Length_In;_Notes
So, compare and use it like with this demo
I created a test app using the same components and this time correct csv output is created. Still puzzling why the production app creates such headers.in csv files with enriched header.