GridDashboardItem.FormatRules Property

Provides access to format rules of the Grid dashboard item.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v18.2.Core.dll

Declaration

public GridItemFormatRuleCollection FormatRules { get; }
Public ReadOnly Property FormatRules As GridItemFormatRuleCollection

Property Value

Type Description
GridItemFormatRuleCollection

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