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.

GroupView DragDrop Event

Thread ID:

Created:

Updated:

Platform:

Replies:

67358 Aug 15,2007 09:55 AM Aug 20,2007 05:16 AM Windows Forms 1
loading
Tags: Tools
Frank Zhang
Asked On August 15, 2007 09:55 AM

Hi,

I want to allow the user to drop a GroupViewItem in a GroupView, but do the actual placement of the GroupViewItem myself, to maintain a sorted list.
I set e.Effect = DragDropEffect.None in the GroupView's DragDrop Event, but the GroupViewItem is still dropped. How can I make it so that the GroupViewItem is not actually dropped.

thanks,

Frank Zhang

Golda Rebecal [Syncfusion]
Replied On August 20, 2007 05:16 AM

Hi Frank,

To control the dragdrop effect of GroupViewItem, you have to handle the DragOver event of GroupView.

//to cancel the dragdrop effect of GroupViewItem
void groupView1_DragOver(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.None;
}

Please try this and let me know if this helps you.

Best regards,
Golda

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.

;