Is it possible to cancel a Drag and Drop Operation like on TreeView?
http://docs.telerik.com/devtools/winforms/treeview/drag-and-drop/cancel-a-drag-and-drop-operation
I'd like to impose some restrictions on drop operation based on from/destination rows.
Thank you.
Leonardo
2 Answers, 1 is accepted
0
Accepted
Dimitar
Telerik team
answered on 19 May 2017, 10:37 AM
Hi Leonardo,
Thank you for writing.
You can use the PreviewDragDrop event. Here is an example:
public RadForm1()
{
InitializeComponent();
for (int i = 0; i < 10; i++)
{
string[] values = new string[] { "Row" + i, i + "", "Test", "Test", "Test" };
radGridView1.Rows.Add(values);
}
var service = radGridView1.GridViewElement.GetDragDropService();