I have two XamDataGrid on my user control(CustomView), I have bind this view with my CustomViewmodel which is inherited from viewmodelbase which is inherited by INotifyPropertyChanged .
On View I have two grid , grid1 have the employee data and in grid 2 will have updated data whatever user change in grid1 should be display that updated Row in it.
I bind a ObservableCollection of employee class to Grid1. Now when ever user update anything in grid1 it will call a Updated method of grid through Trigger in viewmodel and I add that row into another UpdateCollection of ObservableCollection type which is binding to grid2.
The above funtinality working properly and UpdatedCollection also get refreshed with updated record but same collection UpdateCollection is not getting reflect in Grid2.
I need your help on this Thanks in advance.
View Code:
>
="Black"
="10,30,10,10" >
="xamDataGrid1">
}"/>
/>
<!--TargetObject="{Binding ElementName=LeverageFramework.ViewModel.CustomDealViewModel}"
MethodName="clickme"/>-->
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
Its work for me , actully there was issues in binding one grid updated evernt was bounded with staticresource binding and another second grid was bind with simple binding code, which i have again changed to staticresource binding and it works for me.
Thanks for your response.
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking into it and the code you have provided, but it seems like I am missing something and I wasn’t able to reproduce your behavior, so if this is still an issue for you, could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.
Looking forward for your reply.