Move an existing record within the same RC |
Post Reply |
Author | |
mellysully
Groupie Joined: 09 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 07 January 2011 at 4:32am |
Hi guys,
I am trying to move an existing record to the other row within the same Report Control by drag and drop. Please can someone give me a small example of the code? I know insertat and removeat are used to copy and move an existing record to the other location but which event do you need to use for dropping after begindrag event? Mousemove?
Please help, many thanks.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
If you mean to allow the user to drag drop it is simple:
wndReport.EnableDragDrop "ReportSample:frmMain", xtpReportAllowDrag Or xtpReportAllowDrop This assumes an unsorted\ungrouped report. |
|
mellysully
Groupie Joined: 09 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
But it wont allow me to move the child rows, just parent ones. I dont have unrestrictedDragdrop property in 13.2.1.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I'm not sure what can be done. UnrestrictedDragDrop was added for this purpose, before it was restricted.
It was added in 13.3 so upgrading to 13.3.1 might be easiest option if you don't want to use the latest code. |
|
mellysully
Groupie Joined: 09 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Ok thanks Supermario. Anyone got a workaround for this problem? I can not upgrade to 13.4.1 yet, my team leader says.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |