Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 20:55

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to swap rows
PostPosted: 09 Aug 2014, 11:32 
Offline

Joined: 04 Sep 2013, 06:10
Posts: 16
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group