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

Start Grid Dragging on the first click

Thread ID:





69822 Nov 13,2007 05:38 PM UTC Nov 14,2007 10:38 AM UTC WinForms 2
Tags: GridControl
Thomas Hahn
Asked On November 13, 2007 05:38 PM UTC

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,

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

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,

Thomas Hahn
Replied On November 14, 2007 10:38 AM UTC

Hi Haneef,

thank a lot for the examble. It works fine.

With best regards,


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

or the page will be automatically redirected to 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