Hi,
I'm trying to create a xamDataGrid in which the rows can be dragged to another grid. At the same time, the users must be able to rearrange columns, also by dragging and dropping. I can't seem to get both working at the same time. The following snippet is part of my solution:
<Style TargetType="{x:Type igDP:DataRecordPresenter}"><Setter Property="Template"><Setter.Value><ControlTemplate TargetType="{x:Type igDP:DataRecordPresenter}"><igWindows:CardPanel x:Name="baseGrid" MouseDown="CardPanel_MouseDown">
<ig:DragDropManager.DragSource><ig:DragSource IsDraggable="True" DragChannels="Channel1" Drop="DragSource_Drop" DragCancel="DragSource_DragCancel" DragStart="DragSource_DragStart" DragEnter="DragSource_DragEnter" DragLeave="DragSource_DragLeave">
<!-- ... -->
</ig:DragSource>
</ig:DragDropManager.DragSource>
The problem is that the drag and drop operations for dragging the rows to the other grid kind of "steal" the drag operations from the header sorting. I tried following approaches to solve it without success:
I'm out of ideas... Can you help me?
Regards, Stefan
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
Thank you for your reply! Your sample did help me indeed, it seems I had to move the DragSource to the ContentPresenter called "PART_RecordContentSite".
Hello Stefan,
Thank you for your post. I have been looking into it and I can suggest you see this forum thread:
http://ko.infragistics.com/community/forums/t/68238.aspx
where a similar issue is discussed. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.