TWebDbGrid.SaveToFile issue

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.

In your example the columns in the WebDbGrid are already defined at design time. In my case the WebDbGrid is 'virgin'.

image

At runtime the grid is filled up with json via:
WebClientConnectionSyntaxa.Uri := url;
WebClientConnectionSyntaxa.Active := True;

Was retested where the Demo\Basics\DataSet demo was used, WebDBGrid was added without any initialization.

It got filled correct from the data
image

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.