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.

Start Grid Dragging on the first click

Thread ID:

Created:

Updated:

Platform:

Replies:

69822 Nov 13,2007 12:38 PM Nov 14,2007 05:38 AM Windows Forms 2
loading
Tags: GridControl
Thomas Hahn
Asked On November 13, 2007 12:38 PM

Hello everybody,

I want to start dragging on the first left click in a cell. It should be unnecessary if the cell was selected before. I don't want to have only a HitTestSelectionEdge where I can start dragging. Dragging should be start everywhere when i click with Left and hold it down and move the mouse.

I implement my own GridOleDataSourceMouseController and set them to my grid instead of the original but i don't know what I must overwrite to get the desired behaviour.

Can anybody help me?

Thanks a lot,
Thomas


haneefm [Syncfusion]
Replied On November 13, 2007 06:13 PM

Hi Thomas,

The grid has very extensible OLE D&D support. If you want to do custom D&D support, you would probably want to override OnMouseDown method/MouseDown of the grid and if the click is on grid cell, then you need to call the DoDragDrop method for passing in your custom data object. Please refer to this KB article related to start a drag-and-drop operation by just clicking on the grid cell.

Can I start a drag-and-drop operation by just clicking on the selection and begining to drag it?

Best regards,
Haneef


Thomas Hahn
Replied On November 14, 2007 05:38 AM

Hi Haneef,

thank a lot for the examble. It works fine.

With best regards,
Thomas


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.

;