Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Gridview control, how to multi select the gridview items using mouse click-drag selection, like we select files/folders in windows explorer using mouse?

Like this Selection

If there is no mouse click-drag multi-selection available, please provide any code/idea of how to implement that myself.

What I have tried:

In Microsoft's docs, I could see only Single/Multiple/Extended selection, in which user has to click each Gridviewitem's checkbox to multi-select. i.e. I should tick the checkboxes in each GridViewitem, which takes more time if select more than 20 or 30 items. This seems an in-efficient way.
Posted
Updated 29-Aug-18 18:10pm
v5

1 solution

Haven't worked with UWP before, but looking at the docs, it seems like the drag and drop functionality is not supported by the regular GridView. In this case, you may need to build a custom control by extending the GridView control just like in this example: Extending GridView with Drag and Drop for Grouping and Variable Sized Items[^]

Looking back at the documentation, To do multiple selection, you have to use SHIFT or CTRL keys. Since a UWP app can target different devices including touch screens, they've designed it that way.

Also, I'm not sure if this will work for you: https://stackoverflow.com/questions/35890625/win-rt-xaml-gridview-drag-select-multiple-items
 
Share this answer
 
v2
Comments
Member 12177507 29-Aug-18 23:50pm    
No. It is not drag/drop. I am talking about multi-selection using mouse. Like this Selection
Vincent Maverick Durano 30-Aug-18 9:29am    
Looking back at the documentation, To do multiple selection, you have to use SHIFT or CTRL keys. Since a UWP app can target different devices including touch screens, they've designed it that way.

Also, I'm not sure if this will work for you: https://stackoverflow.com/questions/35890625/win-rt-xaml-gridview-drag-select-multiple-items

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900