Xceed DataGrid for Silverlight Documentation
DataGridGroupConfiguration Class
Members  Example 


Provides group-configuration information for a group description.
Object Model
DataGridGroupConfiguration ClassStatFunctionCollection ClassStatFunction Class
Syntax
'Declaration
 
<StyleTypedPropertyAttribute(Property="GroupHeaderStyle", StyleTargetType=Xceed.Silverlight.DataGrid.GroupHeaderControl)>
Public Class DataGridGroupConfiguration 
   Inherits DataGridConfiguration
   Implements MS.Internal.IManagedPeer, MS.Internal.IManagedPeerBase, MS.Internal.INativeCoreTypeWrapper 
'Usage
 
Dim instance As DataGridGroupConfiguration
[StyleTypedPropertyAttribute(Property="GroupHeaderStyle", StyleTargetType=Xceed.Silverlight.DataGrid.GroupHeaderControl)]
public class DataGridGroupConfiguration : DataGridConfiguration, MS.Internal.IManagedPeer, MS.Internal.IManagedPeerBase, MS.Internal.INativeCoreTypeWrapper  
Remarks
Any modifications made to an active DataGridGroupConfigurationSelector (see DataGridControl.GroupConfigurationSelector property) or DataGridGroupConfiguration once the content of a grid is displayed requires a call to the Refresh method in order for the changes to be applied.
Example

The code for the FlagPathConverter class can be found in the Additional Resources section of the documentation.

<sldg:DataGridGroupDescription PropertyName="ShipCountry">
    <sldg:DataGridGroupDescription.GroupConfiguration>
        <sldg:DataGridGroupConfiguration>
            <sldg:DataGridGroupConfiguration.GroupValueTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <!--The flagPathConverter resource changes the value of a
                            group (e.g., "Canada") to an image. -->
                        <Image Source="{Binding Converter={StaticResource flagPathConverter}}"
                               Margin="0, 0, 5, 0"/>
                        <TextBlock Text="{Binding}"                                                  
                                   VerticalAlignment="Center"/>
                    </StackPanel>
                </DataTemplate>
            </sldg:DataGridGroupConfiguration.GroupValueTemplate>
         </sldg:DataGridGroupConfiguration>
      </sldg:DataGridGroupDescription.GroupConfiguration>
   </sldg:DataGridGroupDescription>
<sldg:DataGridGroupDescription PropertyName="ShipCity" />
Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      Xceed.Silverlight.DataGrid.DataGridConfiguration
         Xceed.Silverlight.DataGrid.DataGridGroupConfiguration

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridGroupConfiguration Members
Xceed.Silverlight.DataGrid Namespace
DataGridControl.DefaultGroupConfiguration Property

Manipulating Data

Grouping Data

Send Feedback