June 12th, 2013, 05:40 PM
How to get object bound to DataGridRow in Xaml?
There is DataGrid with ItemsSource as ObservableCollection. ParticipantViewModel having property named ExpenseType, Currency etc. For some specific expense types participant can change currency and this can be determined from another property of ParticipantViewModel named IsCurrencyEnable. I bind IsCurrencyEnable with ComboBox IsEnabled property.
But it is searching for IsCurrencyEnable in the MainViewModel instead of ParticipantViewModel.
How can I bind IsEnabled property such a way that it get value from ParticipantViewModel?
Tags for this Thread
Click Here to Expand Forum to Full Width