Skip to main content

GridColumn.BackgroundColor Property

Gets or sets the background color of the column’s cells. This is a bindable property.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

Declaration

public Color BackgroundColor { get; set; }

Property Value

Type Description
Color

The background color.

Remarks

You can also use the FontColor property to configure the text color for the column’s cells, and the FontFamily/FontAttributes/FontSize properties to change the font of cells’ text.

To customize the appearance of a specific cell, handle the CustomCellAppearance event.

Use the Padding property to set the text padding for a column’s cells.

Example

The following example shows how to customize the appearance of a specific column in the grid:

    <dxg:NumberColumn FontSize="18" 
                      FontColor="Brown" 
                      FontAttributes="Bold" 
                      BackgroundColor="LightGoldenrodYellow" />

.NET MAUI DataGrid - GridColumn Custom Appearance

See Also