In Delphi, a cxgrid grid of devexpress, I try to save the layout to the database. I have here functions to save to ini, but this produces several files in the folder and would like to save these settings in the database
For this I was thinking of using StoreToStorage, saving in the bank in string. Or if I do not find it, I'll have to play this ini on the bank ...
Does anyone have any code example using StoreToStorage?
Example with INI Save
procedure TFrm_BI_Exemplo.actDoSaveExecute(Sender: TObject);
begin
grdPadraoCxDBTableView1.StoreToIniFile(ExtractFilePath(Application.ExeName) + '/filtros/Teste.ini', true, [gsoUseFilter, gsoUseSummary]);
end
Example with INI Load
procedure TFrm_BI_Exemplo.actDoLoadExecute(Sender: TObject);
begin
grdPadraoCxDBTableView1.RestoreFromIniFile(ExtractFilePath(Application.ExeName) + '/filtros/teste.ini', true, false, [gsoUseFilter, gsoUseSummary]);
end;
Thanks to everyone