2X faster development
The ultimate WPF UI toolkit to boost your development speed.
By default, in Grid Control drag and drop operation is enabled only when ExcelLikeSelectionFrame property is true. But the user can able to perform drag and drop operations even when ExcelLikeSelectionFrame is false by overriding GridExcelLikeDragDropMouseController. For example: Create an ExcelDragDropController class inherited from GridExcelLikeDragDropMouseController interface and add the instance of this class into MouseControllerDispatcher of the grid. In ExcelDragDropController class, HitTest method determines whether to perform drag and drop or not based on the mouse position. It returns 1 if the position is correct else returns 0.
C#:
CheckHitTest method is used to determine whether the mouse is pressed in the GridControl or not. C#
On MouseDown, invoke the method StartDragDrop of GridExcelLikeDragDropMouseController using Reflection to enable the drag and drop operation of the particular selected range. Please refer the code example for your reference C#
We have also prepared a sample for your reference,
|
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.