GridDashboardItem.FormatRules Property

Provides access to format rules of the Grid dashboard item.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v21.1.Core.dll


public GridItemFormatRuleCollection FormatRules { get; }

Property Value

Type Description

A GridItemFormatRuleCollection object that is a collection of Grid format rules.


The Grid dashboard item allows you to apply conditional formatting to cells. The FormatRules property provides access to a collection of the GridItemFormatRule objects that are used to define formatting settings.

To add a new format rule, create the GridItemFormatRule object and specify the following settings.

Finally, add the created format rule to the FormatRules collection. You can use the DashboardItemFormatRule.Enabled property to specify whether the current format rule is enabled.

See Also