I am using the XamTreeGrid and here is the xaml:
<igDP:XamTreeGrid DataSource="{Binding ChangesList, RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}}" Grid.Row="1" BorderThickness="1" BorderBrush="Silver"> <igDP:XamTreeGrid.FieldSettings> <igDP:FieldSettings AllowRecordFiltering="True" DataItemUpdateTrigger="OnCellValueChange"/> </igDP:XamTreeGrid.FieldSettings> <igDP:XamTreeGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="False" /> </igDP:XamTreeGrid.FieldLayoutSettings> <igDP:XamTreeGrid.FieldLayouts> <igDP:FieldLayout Key="SyncItems"> <igDP:CheckBoxField Label="" AlternateBinding="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="Auto"/> <igDP:Field Name="Description" AllowEdit="False" Width="350"/> <igDP:Field Name="User" AllowEdit="False" Width="Auto"/> <igDP:Field Name="DateTime" AllowEdit="False" Width="Auto"/> <igDP:Field Name="SyncItems" /> </igDP:FieldLayout> <igDP:FieldLayout Key="ChildSyncItem"> <igDP:Field Name="Description" AllowEdit="False"/> <igDP:Field Name="User" AllowEdit="False"/> <igDP:Field Name="DateTime" AllowEdit="False"/> <igDP:Field Name="ChildSyncItems" AllowEdit="False" IsExpandable="True"/> </igDP:FieldLayout> </igDP:XamTreeGrid.FieldLayouts> </igDP:XamTreeGrid>
please check my screenshot
Hello Lin,
Thank you for your post.
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I have been looking into it, but it seems like I am missing something from your scenario, so if this is still an issue for you, could you please send me, an isolated sample project, where this is reproduced, so I can investigate it further for you.
Also would you please take a look at this forum thread and try similar approach with XamTreeGrid:
http://ko.infragistics.com/community/forums/t/10948.aspx
Looking forward to hearing from you.
if you have interface structure like this, it will show as PO describes:public interface IManager : IPerson, IRole
Manager : IManager
and IPerson defines Name, Age; IRole defines Title and other stuff.
Fields are trying to display Name, Age, Title, and when the binding source is empty, the grid will show as empty without column header.