Group configurations in version 1.x
XAML |
Copy Code |
---|---|
<xcdg:DataGridControl x:Name="OrdersGrid" ItemsSource="{Binding Source={StaticResource cvs_orders}}"> <xcdg:DataGridControl.View> <xcdg:TableView> <xcdg:TableView.GroupLevelConfigurations> <!--The configuration that will be applied to all first-level groups--> <xcdg:GroupLevelConfiguration InitiallyExpanded="False"> <xcdg:GroupLevelConfiguration.Footers> <xcdg:GroupHeaderFooterItemTemplate VisibleWhenCollapsed="True"> <DataTemplate> <xcdg:InsertionRow/> </DataTemplate> </xcdg:GroupHeaderFooterItemTemplate> </xcdg:GroupLevelConfiguration.Footers> </xcdg:GroupLevelConfiguration> <!--The default configuration will be applied to all other group levels.--> <xcdg:GroupLevelConfiguration/> </xcdg:TableView.GroupLevelConfigurations> </xcdg:TableView> </xcdg:DataGridControl.View> </xcdg:DataGridControl> |
Group configurations as of version 2.0
XAML |
Copy Code |
---|---|
<xcdg:DataGridControl.GroupConfigurationSelector> <xcdg:LevelGroupConfigurationSelector> <!--The configuration that will be applied to all first-level groups. There is no need to specify a default group configuration since the built-in one will be used. --> <xcdg:LevelGroupConfigurationSelectorItem Level="0"> <xcdg:LevelGroupConfigurationSelectorItem.GroupConfiguration> <xcdg:GroupConfiguration InitiallyExpanded="False" UseDefaultHeadersFooters="True"> <xcdg:GroupConfiguration.Headers> <xcdg:GroupHeaderFooterItemTemplate VisibleWhenCollapsed="True"> <DataTemplate> <xcdg:InsertionRow Background="HotPink"/> </DataTemplate> </xcdg:GroupHeaderFooterItemTemplate> </xcdg:GroupConfiguration.Headers> </xcdg:GroupConfiguration> </xcdg:LevelGroupConfigurationSelectorItem.GroupConfiguration> </xcdg:LevelGroupConfigurationSelectorItem> </xcdg:LevelGroupConfigurationSelector> </xcdg:DataGridControl.GroupConfigurationSelector> |
Group configurations as of version 6.2
XAML |
Copy Code |
---|---|
<xcdg:DataGridControl.GroupConfigurationSelector> <xcdg:LevelGroupConfigurationSelector> <!--The configuration that will be applied to all first-level groups. There is no need to specify a default group configuration since the built-in one will be used. --> <xcdg:LevelGroupConfigurationSelectorItem Level="0"> <xcdg:LevelGroupConfigurationSelectorItem.GroupConfiguration> <xcdg:GroupConfiguration InitiallyExpanded="False" DefaultHeadersFootersType="GroupHeaderControl"> <xcdg:GroupConfiguration.Headers> <xcdg:GroupHeaderFooterItemTemplate VisibleWhenCollapsed="True"> <DataTemplate> <xcdg:InsertionRow Background="HotPink"/> </DataTemplate> </xcdg:GroupHeaderFooterItemTemplate> </xcdg:GroupConfiguration.Headers> </xcdg:GroupConfiguration> </xcdg:LevelGroupConfigurationSelectorItem.GroupConfiguration> </xcdg:LevelGroupConfigurationSelectorItem> </xcdg:LevelGroupConfigurationSelector> </xcdg:DataGridControl.GroupConfigurationSelector> |