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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom column cursor for drag-and-drop between grids

Thread ID:





102579 Feb 10,2012 06:21 PM UTC Feb 15,2012 12:19 PM UTC WinForms 1
Tags: GridControl
Noah Shipley
Asked On February 10, 2012 06:21 PM UTC

I am having issues with the drag and drop implementation within the grid. I am trying to render a column to a cursor, and then use either that cursor or the "No" cursor when dragging over valid drop targets within my grid. All of this logic works fine, however the grid does not appear to ever call GiveFeedback or OnGiveFeedback, nor does it respect Cursor.Current or OnSetCursor for more than a moment, resulting in my custom cursor flickering vs the default drag and drop cursors (move and invalid).

I've tried god-knows-how-many kludges and hacks taken from these forums. NONE have worked. Here are some of the many I've tried (talk about a waste of my time!!):

Correct way in OLE:
GiveFeedback. Never fired.
OnGiveFeedback in derived class. Never fired.

Attempts to turn off underlying grid behavior. Has no impact:
AllowDrop = true;
Model.Options.ControllerOptions = Model.Options.ControllerOptions & ~GridControllerOptions.OleDropTarget;
Model.Options.ControllerOptions = Model.Options.ControllerOptions & ~GridControllerOptions.OleDataSource;

Overriding OnSetCursor. Results in flicker, as does setting Cursor.Current.

The next one to look at is implementing my very own MouseController, however there's no documentation on the subject, and I have no reason to believe it'll work any differently. How about a real solution?

Here are some of the forum threads that are just blind alleys. How about consolidating and fixing stuff like this? It's obviously a common problem... Help!


Asarudheen S [Syncfusion]
Replied On February 15, 2012 12:19 PM UTC

Hi Noah,

Thank you for your interest in Syncfusion products.

Please refer the following sample to resolve the reported issue in this forum.

Here is the sample link:


Please let us if this helps.



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