1

Is there any way, drag and drop items in same Gridview for reordering the items?

I visited these examples but in both examples drag and drop allows items in different GridViews.

http://blogs.msdn.com/b/going_metro/archive/2012/07/16/drag-and-drop-within-a-grouped-grid-view.aspx

http://www.renauddumont.be/en/2012/windows-8-csharp-xaml-drag-drop

I am trying to drag and drop items in same Gridview for reordering the items.

Thanks

Sajid
  • 320
  • 3
  • 20

1 Answers1

2

Just add these lines in GridView XAML

            CanReorderItems="True"
            AllowDrop="True"
            CanDragItems="True"
Sajid
  • 320
  • 3
  • 20
  • It seems don't support reordering, the dropped item always at the last – James Jan 09 '13 at 06:53
  • @James This should help, http://stackoverflow.com/questions/16388867/xaml-c-what-event-fires-after-reordering-a-gridview Basically, ObservableCollection should do all reordering for you. – kimsk Jun 19 '13 at 03:07
  • @ShashankBisen for Windows Phone 8.1, you do use `.ReorderMode=ListViexReorderMode.Enabled` ! Look here : [link]http://msdn.microsoft.com/en-US/elibrary/windows/apps/windows.ui.xaml.controls.listviewbase.reordermode.aspx[/link] – Toss Net Oct 29 '14 at 07:57