Xceed.Silverlight.DataGrid.v2.0 Assembly > Xceed.Silverlight.DataGrid Namespace > Column Class : CellContentTemplate Property |
'Declaration Public Property CellContentTemplate As DataTemplate
'Usage Dim instance As Column Dim value As DataTemplate instance.CellContentTemplate = value value = instance.CellContentTemplate
public DataTemplate CellContentTemplate {get; set;}
<sldg:Column FieldName="Freight"> <sldg:Column.CellContentTemplate> <DataTemplate> <TextBlock Text="{Binding StringFormat=c2}" HorizontalAlignment="Center"/> </DataTemplate> </sldg:Column.CellContentTemplate> </sldg:Column>
<DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding LastName}"/> <TextBlock Text=", "/> <TextBlock Text="{Binding FirstName}"/> </StackPanel> </DataTemplate>
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family
Column Class
Column Members
Cell.OverrideColumnCellContentTemplate Method