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
835
XamComboEditor Databinding Help
posted

 

 

 

 

 

 

 

Can some one please show me the equivalent xaml for the XamComboEditor based on the MS ComboBox xaml below? The MS version works great. I'm new to WPF and am a bit lost in all the intricacies of data binding.

Thanks!

<igEditors:XamComboEditor Grid.Row="1" Grid.Column="1" Margin="2" ItemsSource="{Binding Facilities}" DisplayMemberPath="Name" />

 

 

 

 

<!-- <ComboBox Grid.Row="1" Grid.Column="1" Name="c1ComboBoxFacilityID" Margin="2" ItemsSource="{Binding Facilities}" DisplayMemberPath="Name" SelectedValue="{Binding CurrentBatch.FacilityID}" SelectedValuePath="FacilityID" /> -->

Parents
No Data
Reply
  • 5124
    Verified Answer
    posted

    Hello,

    I believe that, rather than using SelectedValue and SelectedValuePath, you would use Value and ValuePath, respectively.

    <igEditors:XamComboEditor Grid.Row="1" Grid.Column="1" Margin="2" ItemsSource="{Binding Facilities}" DisplayMemberPath="Name" Value="{Binding CurrentBatch.FacilityID}" ValuePath="FacilityID"/>

    Please try this out and post back here is this does not work or you have further questions on this topic.

    Thanks,

Children