Hello,
I have a usercontrol that has a gridview in it binded to an observablecollection defined as a property of the usercontrol.
I need a 3 level cascading comboboxes on 3 columns, and I need to bind them to either properties or methods defined inside the usercontrol code behind class.
I've tried several things but I think I'm missing something, I'm kind of new to how binding works on wpf.
I'm trying to set the binding like this:
Where Operations is a Property of the UserControl, but I think it's trying to find Operations as a property of the Databound Object.
Any help would be appreciated.
I have a usercontrol that has a gridview in it binded to an observablecollection defined as a property of the usercontrol.
I need a 3 level cascading comboboxes on 3 columns, and I need to bind them to either properties or methods defined inside the usercontrol code behind class.
I've tried several things but I think I'm missing something, I'm kind of new to how binding works on wpf.
I'm trying to set the binding like this:
<telerik:GridViewDataColumn |
Header="Questions" |
DataMemberBinding="{Binding Operation, Mode=TwoWay}"> |
<telerik:GridViewDataColumn.CellEditTemplate> |
<DataTemplate> |
<telerik:RadComboBox DisplayMemberPath="operation" SelectedValuePath="id" |
ItemsSource="{Binding Operations, Mode=TwoWay}" /> |
</DataTemplate> |
</telerik:GridViewDataColumn.CellEditTemplate> |
</telerik:GridViewDataColumn> |
Where Operations is a Property of the UserControl, but I think it's trying to find Operations as a property of the Databound Object.
Any help would be appreciated.