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
195
Column header is not display when the datasource is empty
posted

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

Parents
  • 1155
    posted

    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.

Reply Children
No Data