Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Tag Property Lost During Drag And Drop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tag Property Lost During Drag And Drop

 Post Reply Post Reply
Author
Message
haraldradi View Drop Down
Newbie
Newbie


Joined: 31 August 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote haraldradi Quote  Post ReplyReply Direct Link To This Post Topic: Tag Property Lost During Drag And Drop
    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.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2006 at 1:43am
This is actually a bug... Will be fixed for the next release.

--
WBR,
Serge
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.