I made a very simple testproject in Delphi 10.2 using FMX. The setup is simple :
- TGrid that is binded to a TClientDataSet (done in the designer).
- button that allows the user to open an XML file
This all works fine and the TGrid is populated with all records from the XML File. The XML file is created by another TClientDataSet from an older project.
Now for the problem.
When I move a column to another position all the data is messed up. I do this by just holding down the mouse on a column and than drag it a few columns to the right.
At first it looks fine, but when you start scrolling vertical, it seems that the data is not in the correct columns anymore.
I have the feeling that it only corrects the data in the visual part of the grid, and as soon as you start scrolling the data is not in the correct columns anymore.
Is this a known bug or is there something wrong with my project.
As I said before, there is absolutely no code in this project all is done in the designer. (except for the clientdataset1.LoadFromFile offcourse)
delphi-xe
which did not have FMX. So please, edit your q and make necessary corrections. – Tom BrunbergTag
property to the original column and use that as reference instead of theACol
parameter. – Tom Brunberg