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
1225
Odata Hierarchy
posted

I have a xamGrid bound to a collection which comes from an Odata service.  The query returns a collection of teens and a teen has a property called events which is a collection of events the teen attended.  How do I get the xamGrid to display the heirarchy..

 

Here is the xaml for the grid

              <ig:XamGrid ItemsSource="{Binding}" Name="TeenInfoesXamGrid" AutoGenerateColumns="False">

                    <ig:XamGrid.SummaryRowSettings>

            <ig:SummaryRowSettings AllowSummaryRow="Bottom" SummaryExecution="AfterFilteringBeforePaging" />

            </ig:XamGrid.SummaryRowSettings>

            <ig:XamGrid.SelectionSettings>

                <ig:SelectionSettings CellClickAction="SelectRow" />

            </ig:XamGrid.SelectionSettings>

            <ig:XamGrid.RowSelectorSettings>

                <ig:RowSelectorSettings Visibility="Visible" />

            </ig:XamGrid.RowSelectorSettings>

            <ig:XamGrid.GroupBySettings>

                <ig:GroupBySettings AllowGroupByArea="Top" ExpansionIndicatorVisibility="Visible" />

            </ig:XamGrid.GroupBySettings>

            <ig:XamGrid.FixedColumnSettings>

                <ig:FixedColumnSettings AllowFixedColumns="Indicator" />

            </ig:XamGrid.FixedColumnSettings>

            <ig:XamGrid.FilteringSettings>

                <ig:FilteringSettings AllowFiltering="FilterRowTop" AllowFilterRow="Top" />

            </ig:XamGrid.FilteringSettings>

            <ig:XamGrid.ColumnMovingSettings>

                <ig:ColumnMovingSettings AllowColumnMoving="Immediate" />

            </ig:XamGrid.ColumnMovingSettings>

            <ig:XamGrid.ColumnChooserSettings>

                <ig:ColumnChooserSettings AllowHideColumnIcon="False" AllowHiddenColumnIndicator="False" />

            </ig:XamGrid.ColumnChooserSettings>

            <ig:XamGrid.PagerSettings>

                <ig:PagerSettings AllowPaging="Both" PageSize="20" DisplayPagerWhenOnlyOnePage="False" />

            </ig:XamGrid.PagerSettings>

            <ig:XamGrid.ClipboardSettings>

                <ig:ClipboardSettings AllowCopy="True" CopyType="SelectedCells" />

            </ig:XamGrid.ClipboardSettings>

            <ig:XamGrid.Columns>

                <ig:TextColumn Key="firstName" />

                <ig:TextColumn Key="lastName" />

                <ig:TextColumn Key="birthdate" />

                <ig:TextColumn Key="ChapterName" />

                <ig:TextColumn Key="city" />

                <ig:TextColumn Key="state" />

                <ig:TextColumn Key="zipCode" />

                <ig:TextColumn Key="grade" />

                <ig:TextColumn Key="gender" />

                <ig:TextColumn Key="HomePhone" />

                <ig:TextColumn Key="CellPhone" />

                <ig:TextColumn Key="schoolName" />

            </ig:XamGrid.Columns>

        </ig:XamGrid>