Xceed DataGrid for Silverlight Documentation
GroupValueTemplate Property
Example 


Gets or sets the template that will be used by a group to display its value.
Syntax
'Declaration
 
Public Property GroupValueTemplate As DataTemplate
'Usage
 
Dim instance As DataGridGroupConfiguration
Dim value As DataTemplate
 
instance.GroupValueTemplate = value
 
value = instance.GroupValueTemplate
public DataTemplate GroupValueTemplate {get; set;}

Property Value

The DataTemplate that will be used by a group to display its value.
Example
<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" />
Requirements

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

See Also

Reference

DataGridGroupConfiguration Class
DataGridGroupConfiguration Members

Manipulating Data

Grouping Data

Send Feedback