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
700
xamDataGrid row combobox changed event?
posted

hi, 

I am trying to filter the contents of a dropdown, based on another dropdown in the same row. 

I can do filtering using a ValueConverter , however, i don't know how to get a reference to the value of the other field (also a dropdown). 

Here is my grid field definition (this is the column that has a dropdown that should be filtered based on another columns selected value):

    <igDP:Field Label="Category" Width="100">
        <igDP:Field.Settings>
            <igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}" AllowEdit="True">
                <igDP:FieldSettings.EditorStyle>
                    <Style TargetType="{x:Type igEditors:XamComboEditor}">
                        <Setter Property="ItemsSource" Value="{Binding Path=DataContext, 
                            RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type v:AdjustmentsView_EditGrid}}, 
                            Converter={StaticResource CategoryConverter}}" />
                        <Setter Property="DisplayMemberPath" Value="Name" />
                        <Setter Property="ValuePath" Value="Name" />
                    </Style>
                </igDP:FieldSettings.EditorStyle>
            </igDP:FieldSettings>
        </igDP:Field.Settings>
    </igDP:Field>

The only way i thought of doing this, was if i could somehow update record on every selection of the other dropdown. If i can update record immediately after changing a selection, my converter would know how to filter the list.