Xceed.Silverlight.DataGrid.v2.0 Assembly > Xceed.Silverlight.DataGrid Namespace > DataGridGroupConfiguration Class : GroupValueTemplate Property |
'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;}
<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" />
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family