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
250
UnboundField Display a complex property in XAML
posted

Below code works, but I don't want a combo editor. I want to be able to do this in a unbound field(non-editor text block). Can you please help here ?

<igDP:XamDataGrid DataSource="{Binding Path=AccData}"....>

.

.

.

.

<igDP:UnboundField BindingPath="Id".... >

<igDP:Field.Settings>

<igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}" >

<igDP:FieldSettings.EditorStyle>

<Style TargetType="{x:Type igEditors:XamComboEditor}">

<Setter Property="ItemsSource" Value="{Binding DataItem.Types}"/>

<Setter Property="DisplayMemberPath" Value="Name"/>

<Setter Property="ValuePath" Value="IntID"/>

</Style>

</igDP:FieldSettings.EditorStyle>

</igDP:FieldSettings>

</igDP:Field.Settings>

</igDP:UnboundField>

</igDP:XamDataGrid>