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.
Unfortunately, activation email could not send to your email. Please try again.

drag and drop between a tree view and a group bar

Thread ID:

Created:

Updated:

Platform:

Replies:

61658 May 30,2007 12:03 PM Jan 15,2008 04:14 AM Windows Forms 3
loading
Tags: Tools
kevin wilson
Asked On May 30, 2007 12:03 PM

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 02:48 PM


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 04:24 PM

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 04:14 AM

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.

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.

;