I'm using column groups. Users can rearrange columns but i would like to prevent them from dragging columns to another group.
Thanks,
John
1 Answer, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 May 2018, 09:27 AM
Hello, John,
RadGridView handles the whole drag and drop operation by its RadGridViewDragDropService. The PreviewDragOver event allows you to control on what targets the element being dragged can be dropped on. In the RadDragOverEventArgs you have access to the target element and you can decide whether the drop operation is allowed which is controlled by the CanDrop argument. Additional information about the drag and drop service is available in the following help article: https://docs.telerik.com/devtools/winforms/gridview/drag-and-drop/radgridviewdragdropservice
I hope this information helps. If you have any additional questions, please let me know.