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> 

  • 27093
    posted

    Hello,

     

    I have been looking into you issue and just wanted to make sure I have understood you correctly. You want to have an UnboundField with a XamComboEditor that has a non-editable TextBox in the cell and can only be edited by using its DropDown.

     

    Please let me know if I have misunderstood you and/or I have missed something out.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

     

    • 250
      posted in reply to [Infragistics] Petar Monov

      No, All I want is to just display the complex property(Description) in a non-editable Cell of the Grid. I don't want any editing features to this cell.

      • 250
        posted in reply to Prasanna

        just to be more clear on the requirement. I want to show the 'Name' property from 'Types' collection. This collection is a member of the parent collection 'AccData'. Both these collections are of type BindingList. The ‘Id’ property is from 'AccData' and the ‘IntID’ property is from ‘Types’ collection.

        The above code is working fine. But I don’t want to use any editor (XamComboEditor, XamTextEditor) as I am not looking for any editing features. I just want to display related data on the GRID