This is a migrated thread and some comments may be shown as answers.

Deny drop in the grid view ?

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 16 Jul 2015, 05:36 AM

Hey all.

We currently have a data grid which we allow the user to drop a list of files onto (from file explorer, for example). We would like to deny the drop if there are invalid files in the list, but I can't see how to do that with the GridView (the TreeView seems to have a much richer drag/drop implementation).

Could I please have some guidance, as I'm at a bit of a loss.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 16 Jul 2015, 08:50 AM
Hi Michael,

You can try setting the e.AllowedEffects as DragInitialize/ DragOver events are raised:

e.AllowedEffects = DragDropEffects.None; 
 
Let me know how this works for you.

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or