Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TDBAdvGrid
After sorting on multiple columns, how to keep the settings on the sorting after closing and reopening the connected dataset

The sort information for multicolumn sort can be get & set via DBAdvGrid.SortSettings This has the functions SaveToString / LoadFromString, so you could use these to persist the sort settings.
var
 s: string;

 s := DBAdvGrid.SortSettings.SaveToString;
 
 DBAdvGrid.SortSettings.LoadFromString(s);