Xceed DataGrid for Silverlight Documentation
CellStyle Property (Column)
Example 


Gets or sets the style to apply to the column's cells.
Syntax
'Declaration
 
Public Property CellStyle As Style
'Usage
 
Dim instance As Column
Dim value As Style
 
instance.CellStyle = value
 
value = instance.CellStyle
public Style CellStyle {get; set;}

Property Value

The Style to apply to the column's cells.
Remarks
Cells do not expose a ContentTemplate property; therefore, if a new DataTemplate is required for their content, it must be provided through the parent column's CellContentTemplate property.
Example
<Grid x:Name="LayoutRoot">
   <Grid.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <sldg:SignatureThemeResourceDictionary/>
         </ResourceDictionary.MergedDictionaries>

 
         <Style x:Key="shipCountryDataCellStyle"
                TargetType="sldg:DataCell"
                BasedOn="{StaticResource SignatureThemeDataCellStyle}">
            <Setter Property="FontWeight"
                    Value="Bold"/>                     
         </Style>
      </ResourceDictionary>
   </Grid.Resources>

   <sldg:DataGridControl x:Name="sldgDataGridControl"                                                                                          
                         ItemsSource="{Binding Path=Orders}">
      <sldg:DataGridControl.Columns>
         <sldg:Column FieldName="ShipCountry"
                      Title="Country"
                      CellStyle="{StaticResource shipCountryDataCellStyle}"/>
      </sldg:DataGridControl.Columns>
   </sldg:DataGridControl>
</Grid>
Requirements

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

See Also

Reference

Column Class
Column Members

Styles and Themes

Styles and Themes

Send Feedback