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
525
XAMGrid, modify GroupByItemTemplate-DataTemplate
posted

Hi,

to display a detailled grouped header, I use the GroupByItemTemplate and a DataTemplate.
I want to show the value of a nested column in the header of the group.
How can I do this?
I can show the Value of the groupby-textcolumn and Count:
<ig:TextColumn.GroupByItemTemplate >
   <DataTemplate  >
     <StackPanel Orientation="Horizontal">
       <TextBlock Text="{Binding Value}"></TextBlock>
       <TextBlock Text=" (" />
       <TextBlock Text="{Binding Count}"></TextBlock>
       <TextBlock Text=") " />

but the display of the nested column-Value fails with
       <TextBlock Text="{Binding Records.Konto.Value}"></TextBlock>
your help
http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=xamGrid_GroupBy.html
explains the properties of the data template ,of type GroupByDataContext,
    Value - the value of the row.
    Records - the collection of data objects belonging to the GroupBy row.
    Count - the number of items that belongs to the GroupBy row.


How can I access the value of the Records-Property?
Thanks voks