Hi,
in my application, I created two button where with a click action I change a value of one property of my list object.
On click:
- I get the item of my datagrid;
- Change value of one property of the objects of my collection
- Update this value on database
- If the update returns me "True", I execute:
dgPlan.Items.Refresh();
but the collection on datagrid is not refresh.
If I launch the research, the new values are shown.
Where is the error?
Thanks.


Tom MohanRank #912 · 2.3K reputationPosted Mar 3, 2015, 6:21 AM EST
eg:
ItemsSource="{Binding Path=dataCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Mark it as "Accepted Answer", if Its useful
Roberto Salemi154 reputationPosted Mar 4, 2015, 1:01 AM EST