Print Page | Close Window

DropRecordsEx stops firing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19251
Printed Date: 27 November 2024 at 11:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DropRecordsEx stops firing
Posted By: garyhenson
Subject: DropRecordsEx stops firing
Date Posted: 30 November 2011 at 6:21pm
Win 7, C#, v15 of CJ ActiveX controls.
I have 2 ReportControls on a WinForm that are setup to drag a record from #1 to #2. Both report controls have 3 columns.
I'm using DragOverRecords() and DropRecordsEx(). It works fine as long as I don't click on one of the column headers to sort. I can also get it to 'not work' from the beginning if I set the target report control .SortOrder property.
It seems like sorting or allowing sort of a column is disabling the DropRecordEx event.
 
I still get DragOverRecords events but the DropRecordsEx event will not fire.
 
Help?? You can respond to my email below. I'll check back here as well.
 
Thanks!
 
Gary Henson
mailto:gary.henson@corepointhealth.com - gary.henson@corepointhealth.com


-------------
Software Developer
Product: Xtreme SuitePro (ActiveX) version 13.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0



Replies:
Posted By: garyhenson
Date Posted: 01 December 2011 at 11:26am
Found the 'problem'. I needed to set '.SortedDragDrop' to true.
The documentation on this property poor (as in blank!), please add SOMETHING to explain it.


-------------
Software Developer
Product: Xtreme SuitePro (ActiveX) version 13.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0


Posted By: garyhenson
Date Posted: 01 December 2011 at 3:46pm
However I still need to know what effect setting .SortedDragDrop = true vs. the default (False) has on report controls if anything.
I have a generic call to set Paint properties on all report controls in the product regardless if they support Drag/Drop. I could add .SortedDragDrop=true there and not have to fix each report control instance.
However if setting .SortedDragDrop=true changes the behavior of a report control I can't risk that simple fix.
Please tell what behavior setting .SortDragDrop=true has on a report control. If it only 'allows' DropRecordsEx() to drop on a report control that has column sorting to work but doesn't affect any other behavior I'm ok.
Thanks!


-------------
Software Developer
Product: Xtreme SuitePro (ActiveX) version 13.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net