Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm developing an application in WPF(MVVM). In my view I have two DataGrid's and I have to use two different ViewModels for my grids. How can I achieve this ?

Thanks & Regards,
Ramana
Posted

1 solution

Set each datacontext of your datagrids to different viewModel.
 
Share this answer
 
v2

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