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.

Custom column cursor for drag-and-drop between grids

Thread ID:

Created:

Updated:

Platform:

Replies:

102579 Feb 10,2012 01:21 PM Feb 15,2012 07:19 AM Windows Forms 1
loading
Tags: GridControl
Noah Shipley
Asked On February 10, 2012 01:21 PM

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!

http://www.syncfusion.com/support/forums/grid-windows/29022
http://www.syncfusion.com/support/forums/grid-windows/35475/DragHelper%20and%20Cursor
http://www.syncfusion.com/support/kb/451/How%20do%20I%20change%20the%20mouse%20cursor%20in%20a%20GridControl%20%20GridDataBoundGrid%20%20GridGroupingControl




Asarudheen S [Syncfusion]
Replied On February 15, 2012 07:19 AM

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:

http://www.syncfusion.com/support/forums/general/102579

Please let us if this helps.

Regards,
Asarudheen.








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.

;