Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<cmc:AutoRefreshCollectionViewSource
             x:Uid="CollectionViewSource_1" x:Key='sortedList'
                              Source="{Binding Path=MyList, Mode=TwoWay}" >
                <cmc:AutoRefreshCollectionViewSource.SortDescriptions>
                    <scm:SortDescription x:Uid="scm:SortDescription_1" PropertyName="HoldingRegister"
                                     Direction="Ascending" />
                </cmc:AutoRefreshCollectionViewSource.SortDescriptions>
            </cmc:AutoRefreshCollectionViewSource>



This collectionViewSource is binded to a list view
As the above code MyList the Observable collection in ViewModel


here sorting is happening but the collectionviewsource is not updating back to MyList

pls advice to solve this problem
Posted

1 solution

Most likely a miss spelling of your variables between view and viewmodel.
(Remember it is case sensitive).

Regards
Piet
 
Share this answer
 

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