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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Essential Edit drag drop

Thread ID:





12819 Apr 13,2004 02:13 PM UTC Apr 13,2004 05:41 PM UTC WinForms 1
Tags: EditControl
Ben Visintainer
Asked On April 13, 2004 02:13 PM UTC

I am trying to drag from a GroupView to an Essential Edit control. Here is my code for the OnDragEnter of the edit control: protected override void OnDragEnter(DragEventArgs drgevent) { if ( drgevent.Data.GetDataPresent( Syncfusion.Windows.Forms.Tools.GroupView.GroupViewFormatName ) == true ) { drgevent.Effect = System.Windows.Forms.DragDropEffects.Copy; } } -------- The drag effect always stays "none" and when the mouse button is released, the DragDrop event is not fired. I am deriving from the Essential Edit control.

Administrator [Syncfusion]
Replied On April 13, 2004 05:41 PM UTC

Hi Ben You were on the right track. Here is what I tried to do what you are looking for. In the GroupBarDemo sample (located in the Tools\samples\GroupBar Package\GroupBarDemo folder) I added an EditControl and then added the following code snippet in it''s DragEnter event: private void editControl1_DragEnter(object sender, System.Windows.Forms.DragEventArgs e) { if(e.Data.GetDataPresent(Syncfusion.Windows.Forms.Tools.GroupView.GroupViewFormatName) == true) { Syncfusion.Windows.Forms.Tools.GroupViewItem item = e.Data.GetData( Syncfusion.Windows.Forms.Tools.GroupView.GroupViewFormatName ) as Syncfusion.Windows.Forms.Tools.GroupViewItem; this.editControl1.AppendText(item.Text); this.editControl1.AppendText("\r\n"); } } Regards Arun


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon