Print Page | Close Window

Tag Property Lost During Drag And Drop

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=5870
Printed Date: 19 September 2024 at 1:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tag Property Lost During Drag And Drop
Posted By: haraldradi
Subject: Tag Property Lost During Drag And Drop
Date Posted: 21 December 2006 at 8:22am
If I fetch the dragged ReportRecords from the clipboard the contents of the Tag Property is lost. I use the following C# code during the DragDrop event of a TreeView component:

public ReportRecords GetDraggedRecords(DragEventArgs e) {
    MemoryStream stream = e.Data.GetData(clipboardName) as MemoryStream;
    if (stream != null) {
        return report.CreateRecordsFromDropArray(stream.ToArray());
    }
    return null;
}

I also tried to handle the ReportControl's BeginDrag event and examine what will be pushed onto the clipboard, but there the Tag Property is still set. The Tag would contain a long value, so this should not be a serialization issue.



Replies:
Posted By: sserge
Date Posted: 22 December 2006 at 1:43am
This is actually a bug... Will be fixed for the next release.

--
WBR,
Serge



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