EhLib.Com
https://forum.ehlib.com/en/

How to swap rows
https://forum.ehlib.com/en/viewtopic.php?f=5&t=496
Page 1 of 1

Author:  ccr [ 09 Aug 2014, 11:32 ]
Post subject:  How to swap rows

hello,
i know tdbgrideh can move records via drag-operation.
however i want to provide 2 actions to the users: move record 1 row down / move record 1 row up

i do not want to have an extra order-field/index in the dataset.

what is the best way to achieve this?
there is this function

Code:
MoveDataRows(BookmarkList: TBMListEh; ToIndex: Longint; TreeLevel: Integer; CheckOnly: Boolean): Boolean;


but i don't know what to fill into the parameters

thank you very much

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/