Home Forums WPF controls Xceed DataGrid for WPF GroupStyle

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • Xceed Support
    Member
    Post count: 5658

    <code>
    <DataTemplate DataType=”{x:Type xcdg:Group}”>

    <StackPanel Orientation=”Horizontal”>

    <ContentPresenter Content=”{Binding Title}”
    ContentTemplate=”{Binding RelativeSource={RelativeSource TemplatedParent},Path=DataContext.TitleTemplate}”
    ContentTemplateSelector=”{Binding RelativeSource={RelativeSource TemplatedParent},Path=DataContext.TitleTemplateSelector}” />

    <TextBlock Text=”: ” />
    <ContentPresenter Content=”{Binding Value}” />
    <TextBlock Text=” (” />
    <TextBlock Text=”{Binding ItemCount}” />
    <TextBlock Text=”)” />

    <!– This is the class that “reflects” the CollectionViewGroup property of Group class –>
    <!– and exposes the calculated sums, to be determined if this is how you do things –>
    <MySummaryCalculator x:Name=”mySummary” />

    <ContentPresenter Content=”{Binding ElementName=mySummary, Path=sum1}”/>
    <ContentPresenter Content=”{Binding ElementName=mySummary, Path=sum2}”/>
    <ContentPresenter Content=”{Binding ElementName=mySummary, Path=sum3}”/>
    <ContentPresenter Content=”{Binding ElementName=mySummary, Path=sum4}”/>

    </StackPanel>
    </DataTemplate>
    </code>

    Imported from legacy forums. Posted by Marcus [Xceed] (had 9567 views)

    User (Old forums)
    Member
    Post count: 23064

    Hey Marcus

    Is this still the suggested method to do summaries in the group summary column? (this post is a bit dated)?

    Keith

    Imported from legacy forums. Posted by Keith (had 3072 views)

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.