ListCollectionView collection = new ListCollectionView(data);collection.GroupDescriptions.Add(new PropertyGroupDescription("PathFile"));datagridFile.ItemsSource = collection;
private int m_indexSelectedToMove;
private void MenuItem_Click(object sender, RoutedEventArgs e) { data.Move(m_indexSelectedToMove, m_indexSelectedToMove + 1); m_indexSelectedToMove = -1; var itemList = (ListCollectionView)datagridFile.ItemsSource; itemList.Refresh(); }