This question is locked. New answers and comments are not allowed.
I have a GridViewComboBoxColumn binded to a Dp, like shown below:
and also this is my DP:
My problem is: ComboboxColumn do not show items on normal mode, only in edit mode. So i select the item i want and then when i press "Tab"(to go to next item) it disappears. Also, i't seems that the bind is not two way, once its not saving and showing a message that my "Model" has BrokenRules(i've checked and this property is null);
Can you help me? Hope i was clear.
Thanks!
<telerik:GridViewComboBoxColumn Width="150" Header="Custa tipo" x:Name="costTypeColumn" DataMemberBinding="{Binding Path=CostType.Id, Mode=TwoWay, NotifyOnValidationError=True}" SelectedValueMemberPath="Id" DisplayMemberPath="Name" ItemsSource="{Binding Source={StaticResource costParcelViewModelViewSource}, Path=CostTypes, Mode=TwoWay}"> </telerik:GridViewComboBoxColumn>and also this is my DP:
public static readonly DependencyProperty CostTypesProperty = DependencyProperty.Register("CostTypes", typeof(CostTypeCollection), typeof(CostParcelViewModel), null);public CostTypeCollection CostTypes{ get { return (CostTypeCollection)GetValue(CostTypesProperty); } set { SetValue(CostTypesProperty, value); }}My problem is: ComboboxColumn do not show items on normal mode, only in edit mode. So i select the item i want and then when i press "Tab"(to go to next item) it disappears. Also, i't seems that the bind is not two way, once its not saving and showing a message that my "Model" has BrokenRules(i've checked and this property is null);
Can you help me? Hope i was clear.
Thanks!