# ClearStyle Property

## Content



**FlexGrid for WPF** support ComponentOne's new ClearStyle technology that allows you to easily change control colors without having to change control templates. By just setting a few color properties you can quickly style the control.

The following table outlines the brush properties of the **C1FlexGrid** control:

| Brush | Description |
| --- | --- |
| Background | Gets or sets the brush of the control’s background. |
| [AlternatingRowBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.AlternatingRowBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the background of odd-numbered rows. |
| [BottomRightCellBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.BottomRightCellBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the background of the cell at the bottom right corner of the grid. |
| [ColumnHeaderBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.ColumnHeaderBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint column header backgrounds. |
| [ColumnHeaderForeground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.ColumnHeaderForeground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint column header content. |
| [ColumnHeaderSelectedBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.ColumnHeaderSelectedBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint column header backgrounds for selected cells. |
| [CursorBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.CursorBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the background of the cursor cell. |
| [CursorForeground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.CursorForeground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of the cursor cell. |
| [EditorBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.EditorBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the background of cells in edit mode. |
| [EditorForeground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.EditorForeground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of cells in edit mode. |
| [FrozenLinesBrush](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.FrozenLinesBrush.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the lines between frozen and scrollable areas of the grid. |
| [GridLinesBrush](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.GridLinesBrush.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the lines between cells. |
| [GroupRowBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.GroupRowBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the background of group rows. |
| [GroupRowForeground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.GroupRowForeground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of group rows. |
| [HeaderGridLinesBrush](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.HeaderGridLinesBrush.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the lines between row and column header cells. |
| [RowBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.RowBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint row backgrounds. |
| [RowHeaderBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.RowHeaderBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint row header backgrounds. |
| [RowHeaderForeground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.RowHeaderForeground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint row header content. |
| [RowHeaderSelectedBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.RowHeaderSelectedBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint row header backgrounds for selected cells. |
| [SelectionBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.SelectionBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the background of selected cells excluding the cursor cell. |
| [SelectionForeground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.SelectionForeground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of selected cells excluding the cursor cell. |
| [TopLeftCellBackground](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.TopLeftCellBackground.html) | Gets or sets the System.Windows.Media.Brush that is used to paint the background of the cell at the left top corner of the grid. |

You can completely change the appearance of the C1FlexGrid control by setting one or more properties, For example, if you set the **AlternatingRowBackground** property to "#FFC3F2F2", the C1FlexGrid control appears similar to the following:

![](https://cdn.mescius.io/document-site-files/images/3ca88af8-b501-48d7-a446-601c9251a2fb/graphics/image69_16.png)

## See Also

[C1FlexGrid Class](/componentone/api/wpf/online-flexgrid/dotnet-framework-api/C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.C1FlexGrid.html)