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.

Not receiving SelectionDragging or SelectionDragged events

Thread ID:

Created:

Updated:

Platform:

Replies:

897 Aug 30,2002 03:14 PM Aug 31,2002 06:47 PM Windows Forms 2
loading
Tags: GridControl
Tony Perkins
Asked On August 30, 2002 03:14 PM

I'm trying to tap into the drag and drop of cells within a grid control and figure that I need to capture the SelectionDragging and SelectionDragged events in order to do so. Unfortunately, the grid control does not seem to be firing these events. Are there any settings that I need to change to get these events? What I want to do is change the information that get placed on the clipboard to my own custom format for use when dragging a cell outside of the grid. Thanks, Tony

Clay Burch [Syncfusion]
Replied On August 30, 2002 05:06 PM

The SelectionDragging and SelectionDragged are fired when you started dragging a whole column or whole row that you have previously selected by clicking the header. These event are not part of the OLE D&D support in Essential Grid. The OLE D&D events are the standard Control events such as DragEnter, DragDrop, DragLeave, DragOver. If you want to do custom D&D support, you would probably want to override OnMoudeDown and if the click is on selected cells, then do your own call to DoDragDrop passing in your custom data object.

Stefan Hoenig [Syncfusion]
Replied On August 31, 2002 06:47 PM

Tony, I wanted to add a couple of general notes to this discussion about OLE Dnd. For determining if the cursor is over the edge of a selected range you can call HitTest and check for GridHitTestContext.SelectedRangeEdge Check out also RegisterDataObjectConsumer in the class reference. It lets you register a custom IGridDataObjectConsumer class that adds support for dropping custom data onto the grid. This solution integrates better with the grid than listening to DragEnter/DragLeave events. Right now there is no event that lets you supply custom data when the grid starts an OLE Dnd operation, but we'll take care on this so that this becomes more flexible. You need to override OnMouseDown, do a hit test and start the OLE Dnd operation. Stefan

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.

;