GroupView DragDrop Event

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

1 Reply

GR Golda Rebecal Syncfusion Team August 20, 2007 09:16 AM UTC

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

Loader.
Up arrow icon