The requested page is not available for the requested platform. You are viewing the content for Default platform.

ColumnBase.CellStyle Property

Gets or sets the style of cells displayed within this column. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.1.dll

Declaration

public Style CellStyle { get; set; }
Public Property CellStyle As Style

Property Value

Type Description
Windows.UI.Xaml.Style

A object that represents the style of cells displayed within this column.

Remarks

The CellStyle property specifies the style that groups together properties and resources for CellControls in the column. To adjust the appearance of cells in all columns, use the DataControlBase.CellStyle property. ColumnBase.CellStyle has higher priority than DataControlBase.CellStyle.

Target Type: DevExpress.UI.Xaml.Grid.CellControl.

See the example below.

xmlns:Grid="using:DevExpress.UI.Xaml.Grid"

<Grid:GridTextColumn FieldName="Name">
    <Grid:GridTextColumn.CellStyle>
        <Style TargetType="Grid:CellControl">
            <Setter Property="FontSize" Value="24"/>
            <Setter Property="Foreground" Value="Orange"/>
        </Style>
    </Grid:GridTextColumn.CellStyle>    
</Grid:GridTextColumn>
See Also