Xceed DataGrid for Silverlight Documentation
ColumnManagerCellStyle Property (Column)
Example 


Gets or sets the style that will be applied to all column-manager cells associated with the column.
Syntax
'Declaration
 
Public Property ColumnManagerCellStyle As Style
'Usage
 
Dim instance As Column
Dim value As Style
 
instance.ColumnManagerCellStyle = value
 
value = instance.ColumnManagerCellStyle
public Style ColumnManagerCellStyle {get; set;}

Property Value

The Style that will be applied to all column-manager cells (see ColumnManagerCell class) associated with the column. The specified style must target the ColumnManagerCell type (see TargetType property of Style class) otherwise an exception will be thrown.
Remarks
If a style is explicitly provided via the ColumnManagerCellStyle property, it will override any implicit styles.
Example
<sldg:DataGridControl x:Name="sldgDataGridControl"
                      ItemsSource="{Binding Path=Orders}"
                      DefaultHeadersFooters="ColumnManagerRow, GroupByControl, FilterRow, InsertionRow" >            
    <sldg:DataGridControl.Resources>
        <Style TargetType="sldg:InsertionCell"
               x:Key="orderIDInsertionCellStyle">
            <Setter Property="Background"
                    Value="DeepPink" />
        </Style>

        <Style TargetType="sldg:InsertionCell">
            <Setter Property="Background"
                    Value="DarkGoldenrod" />
        </Style>

        <Style TargetType="sldg:ColumnManagerCell"
               x:Key="orderIDColumnManagerCellStyle">
            <Setter Property="Background"
                    Value="DeepPink" />
        </Style>
    </sldg:DataGridControl.Resources>
    <sldg:DataGridControl.Columns>
        <sldg:Column FieldName="OrderID"
                     InsertionCellStyle="{StaticResource orderIDInsertionCellStyle}"
                     ColumnManagerCellStyle="{StaticResource orderIDColumnManagerCellStyle}"/>
    </sldg:DataGridControl.Columns>
</sldg:DataGridControl>
Requirements

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

See Also

Reference

Column Class
Column Members

Send Feedback