Hi,
After dragging a grid column to another place, sizing the same column gives issues.
There is a mismatch between the original column index and the new index.
I have this issue with Delphi 10.3.2 and the latest version of the components.
Steps to reproduce:
* New Multi-device-application
* Drop a TTMSFMXGrid on the form
* Doubleclick the form to create the FormCreate event.
* Use the code below
* Start the application
* Select column 3:0 and drag to 1:0
* Size column 3:0 (column 1:0 gets resized)
* Size column 2:0 (column 3:0 gets resized)
procedure TForm1.FormCreate(Sender: TObject);
var
c, r: Integer;
begin
TMSFMXGrid1.Options.Mouse.ColumnDragging := True;
TMSFMXGrid1.Options.Mouse.ColumnSizing := True;
for c := 0 to TMSFMXGrid1.ColumnCount - 1 do
begin
for r := 0 to TMSFMXGrid1.RowCount - 1 do
begin
TMSFMXGrid1.Cells[c, r] := Format('%d:%d', [c, r]);
end;
end;
end;