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
1493
Combobox Item selection in hierarichal data in xamdatagrid...
posted

Hi,
   I am trying to display a selected value in combobox which is a field of xamdatagrid in hierarichal Visual Tree and the Value I want to display in combobox as selected value is from hierarichal data which is binded with Data Grid. e.g.

Class ABC
{
 A {get;set;}
 B {get;set;}
 C {get;set;}
}

Class DataGridDataItem
{
  X {get;set;}
  Y {get;set;}
         BindingList ABC {get;set;}

}

Class PresenterofDataGrid
{
 BindnigList<DataGridDataItem> GridSource {get;set;}
 
}

and in Xaml I am doing in this Way..

<igDP:FieldLayout Key="0" >
                        <igDP:Field Name="X" Label="X"/>
                        <igDP:Field Name="Y" Label="Y" />
                        <igDP:Field Name="ABC" Label="ABC" />
</igDP:FieldLayout Key="0" >

<igDP:FieldLayout Key="1" >
                        <igDP:UnboundField Label="ABC" Name="Tenors"  DataType="{x:Type NS:ABC}" >
                            <igDP:Field.Settings>
                                <igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}">
                                    <igDP:FieldSettings.EditorStyle>
                                        <Style TargetType="{x:Type igEditors:XamComboEditor}">
                                            <Setter Property="SelectedItem" Value="{Binding Path=????}"/>
                                            <Setter Property="DisplayMemberPath" Value="A"/>
                                            <Setter Property="ItemsProvider" Value="{Binding Source={StaticResource MySource} }" />
                                        </Style>
                                    </igDP:FieldSettings.EditorStyle>
                                </igDP:FieldSettings>
                            </igDP:Field.Settings>
                        </igDP:UnboundField>
</igDP:FieldLayout Key="0" >

Can Anyone Please suggest the solution.
Thanks.