WPF ListView Insert Item at Given Position when using ItemsSource
        Posted  
        
            by ViNull
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ViNull
        
        
        
        Published on 2010-04-30T19:46:12Z
        Indexed on 
            2010/04/30
            20:37 UTC
        
        
        Read the original article
        Hit count: 841
        
I have a ListView who's ItemsSource is set to an ObservableCollection. The user can soft and filter the ListView, done by using the CollectionViewSource.GetDefaultView and altering the ICollectionView Filter and SortDescriptions.
When the user right-clicks a row, they can add an item to the collection. I want this new row to appear below the row right clicked. So far all the methods I've found for something like this are done with ListView.Items which I can't use because I'm setting the ItemsSource property.
© Stack Overflow or respective owner