We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

drag and drop between a tree view and a group bar

Thread ID:

Created:

Updated:

Platform:

Replies:

61658 May 30,2007 04:03 PM UTC Jan 15,2008 09:14 AM UTC WinForms 3
loading
Tags: Tools
kevin wilson
Asked On May 30, 2007 04:03 PM UTC

I am attempting to create a form that consists of a tree view (TreeViewAdv) and a Group bar. I want the user to be able to drag from the Tree View to the Group Bar.

Can this be done?

Rajesh C [Syncfusion]
Replied On May 30, 2007 06:48 PM UTC


Hi Kevin,

You can drag a item from the TreeViewAdv to the Group Bar using TreeNodeAdv's ItemDrag event handler. Please refer to the following code snippets which illustrates the same:

[ C# ]

private void treeNodeAdv1_ItemDrag(object sender, ItemDragEventArgs e)
{
GroupViewItem item = new GroupViewItem(((TreeNodeAdv[])e.Item)[0].Text.ToString(), 0);
DataObject dtaobject = new DataObject(GroupView.GroupViewFormatName, item);
this.treeNodeAdv1.DoDragDrop(dtaobject, DragDropEffects.All);
}

Please have a look at this sample and let me know if this helps you.

http://websamples.syncfusion.com/samples/Tools.Windows/F61658/Main.htm

Thank you for using Syncfusion products.

Regards,
Rajesh C

kevin wilson
Replied On January 14, 2008 09:24 PM UTC

Would you have a VB sample?

>
Hi Kevin,

You can drag a item from the TreeViewAdv to the Group Bar using TreeNodeAdv's ItemDrag event handler. Please refer to the following code snippets which illustrates the same:

[ C# ]

private void treeNodeAdv1_ItemDrag(object sender, ItemDragEventArgs e)
{
GroupViewItem item = new GroupViewItem(((TreeNodeAdv[])e.Item)[0].Text.ToString(), 0);
DataObject dtaobject = new DataObject(GroupView.GroupViewFormatName, item);
this.treeNodeAdv1.DoDragDrop(dtaobject, DragDropEffects.All);
}

Please have a look at this sample and let me know if this helps you.

http://websamples.syncfusion.com/samples/Tools.Windows/F61658/Main.htm

Thank you for using Syncfusion products.

Regards,
Rajesh C


Fathima Shalini P [Syncfusion]
Replied On January 15, 2008 09:14 AM UTC

Hi Kevin,

Please find the VB sample in the following link:

http://websamples.syncfusion.com/samples/Grid.Windows/F61658_VBFile/main.htm

Please let me know if any concerns.

Regards,
Fathima


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;