FlexGrid for WinRT
ChildItemsPath Property
Example 

Gets or sets the name of the property used to generate child rows.
Syntax
'Declaration
 
Public Property ChildItemsPath As System.String
public System.string ChildItemsPath {get; set;}
Remarks

This property allows you to use the FlexGrid as a bound TreeView.

To use it, the data source must contain items that have properties which are collections of the same type.

Example

For example, assuming you have a Person class with a Children property that contains a list of Person objects, and you want to display the data as a tree.

You could accomplish that using the following XAML:

To display the data as a tree, the grid creates GroupRow objects for every item in the collection.

<c1:C1FlexGrid 
    AutoGenerateColumns="False" 
    ChildItemsPath="Children" >
    <c1:C1FlexGrid.Columns>
        <c1:Column Header="Name" Binding="{Binding Name}" Width="*" />
        <c1:Column Header="Children" Binding="{Binding Children.Count}" />
    </c1:C1FlexGrid.Columns>
</c1:C1FlexGrid>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGrid Class
C1FlexGrid Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum  |   Documentation Feedback