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.

What should I do when I get a "DragDrop registration failed" error as I try to run my application containing the Grid?

Description:

The most likely cause of this problem is that your Main entry point does not have the [STAThread] attribute associated with it. Without this attribute, the Essential Grid support of the OLE Drag and Drop causes this error.

Solution:

There are two possible solutions. The first one is to add the [STAThread] attribute and remove the [MTAThread] attribute in case it is present. The second one is to remove the OLE Drag and Drop support from the Essential Grid.

Solution 1: Here is a sample Main entry point with the STAThread attribute.

C#

VB

Solution 2: To remove OLE Drag and Drop support so that you application can be MTAThread.

  • Change the Main attribute [STAThread] to [MTAThread].
  • Turn the AllowDrop off.
  • Turn off the OLE options in the ControllerOptions.
  • Set the DataObjectConsumerOptions to none.

C#

VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
455 04/30/2011 03/10/2015 Windows Forms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.