When activate sorting on the grid with a livebinding. The underlying datasource will not follow the sorted data.
This must be a bug. Is there any workaround?
You can reproduce this behavior with the provided Livebinding demo.
(set sortingmode from grid to gsmNormal) --> run the demo --> when sorting and scrolling the data --> the datafield's above the grid are not showing the correct data.
Unfortunately sorting is not yet supported directly inside the grid, you need to perform a manual dataset sort
from the OnCanSort event and return an Allow := false to block internal sorting. The dataset will then automatically sort the data and return it, causing the grid to reload the data.
We will investigate this here if we can add support for this.