Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to get object bound to DataGridRow in Xaml?

$
0
0

Hi,

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?

Thanks.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>