Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1050
dynamic databinding
posted

I have a databinding for the grid with observable collection. as following

DataSource="{Binding Source={StaticResource odpObjectDataProvider1}, Path=LoadData()}";

 on some action i have to change the source to another temporarycollecgtion as following

DataSource="{Binding Source={StaticResource odpObjectDataProvider1}, Path=LoadTemporaryData()}";

how can i change the binding source dynamically?

kornel 

 

Parents
No Data
Reply
  • 840
    posted

    I'd have thought that it would be better to change the bindings in code on event handlers?

Children
No Data