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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Description

By default, the drag and drop is performed at the edges of the selected range, that is, rectangle. You can customize the drag and drop of selected ranges at any position of the rectangle.

 

Solution

To implement the customization, you have to handle the MouseDown, MouseUp and Selection changing events.

For example, the following code samples have two grids. You can select a range of cells in the bottom grid and drag them to the upper grid by clicking the selection.

C#

VB

 

Sample Links

CS: Drag_and_drop_by_clicking_selection

VB: Drag_and_drop_by_clicking_selection

 

Article ID: Published Date: Last Revised Date: Platform: Control:
610 04/30/2011 02/12/2016 WinForms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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