All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DataControlBase.DataAreaBackground Property

Gets or sets the brush used to paint the background of the GridControl/TreeListControl's data area. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.Core.dll

Declaration

public Brush DataAreaBackground { get; set; }
Public Property DataAreaBackground As Brush

Property Value

Type Description
Brush

Paints the background of the control's data area.

Remarks

The DataAreaBackground property allows you to change the GridControl/TreeListControl data area's background. To change the background of the entire control, use the GridControl.Background / TreeListControl.Background properties.

<dxg:GridControl ItemsSource="{Binding Orders}" 
                 Background="LightBlue" 
                 DataAreaBackground="LightCyan" ... />

Example

The following example allows you to use the ColorEdit controls to specify the Background and DataAreaBackground properties.

View Example: How to Specify Data Grid Background

Limitations

The CardView does not support the DataAreaBackground property.

See Also