Recent

Author Topic: kdbgrid moving columns problem  (Read 290 times)

tester-dev

  • New member
  • *
  • Posts: 8
kdbgrid moving columns problem
« on: June 10, 2019, 05:26:03 pm »
hi everybody.
when i move a column the header moves but the column data returned back.

tester-dev

  • New member
  • *
  • Posts: 8
Re: kdbgrid moving columns problem
« Reply #1 on: July 08, 2019, 02:21:18 pm »
i did this and it is fixed.

Code: Pascal  [Select]
  1. procedure TNGrid.KDBGridColumnMoved(Sender: TObject; FromIndex,
  2.   ToIndex: Integer);
  3. begin
  4.     DM.SQLQuery1.Fields[FromIndex-CFix].Index:=ToIndex-CFix;
  5.     Col_Moved := true;
  6. end;