How to refresh data in StringGrid when sorting DB using ADOTable.Sort


I have a TStringGrid in a Firemonkey app for Windows which I have used LiveBindings to connect to a DataSource.

The DataSource is linked to an ADOTable. When I use ADOTable.sort the data in the Grid seems to only sort the first row and not the entire table/grid.

Does anyone know how to refresh the entire grid, or ensure all the data is sorted.

ADOTable.filter refreshes the entire grid, so why doesn’t sort work?

Comments are closed.