views:

511

answers:

1

How can I use data template for infragistics combo box? Basically we want to display multiple columns in a combo box. These columns come from different properties of same object.

A: 

Hi, Below is the sample for your problem.

<igDP:Field Name="MultumRoute" Label="Route" >
    <igDP:Field.Settings>
        <igDP:FieldSettings EditAsType="{x:Type Domain:MultumRoute}" EditorType="{x:Type igDE:XamComboEditor}" >
            <igDP:FieldSettings.EditorStyle>
                <Style TargetType="{x:Type igDE:XamComboEditor}">
                    <Setter Property="DisplayMemberPath" Value="Name" />
                    <Setter Property="ItemsSource" Value="{Binding Source={StaticResource multumRouteDropDownDataSource}, Mode=OneWay}"  />
                </Style>
            </igDP:FieldSettings.EditorStyle>
        </igDP:FieldSettings>
    </igDP:Field.Settings>
</igDP:Field>
Sample is not attached
Sumeru Suresh