Click here to Skip to main content
16,012,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
In my view there is a Datagrid and its itemsourse is binding from Filelist from 3 different folders.
IS it possible to switch the binding source programatically.
Eg:For First click ItemsSource="{Binding FileList}
   And for Second Click ItemsSource="{Binding FileList1}
Is it possible in Same Datagrid.?I'm Following MVVM Prism


Thanks in advance..
Posted

1 solution

Why not? You just assign System.Windows.Controls.ItemsControl.ItemsSource to FileList or FileList1. See http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol.itemssource.aspx[^].

—SA
 
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