Skip to main content
A newer version of this page is available. .

GridFormatRule Class

Specifies a single style format rule for a grid control’s View.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v17.2.dll

Declaration

public class GridFormatRule :
    FormatRuleBase

Remarks

To apply style format rules to a grid control’s View, add GridFormatRule objects to the ColumnView.FormatRules collection.

The FormatRuleBase.Rule inherited property specifies the type of style format rule.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridFormatRule class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
FormatRuleBase
GridFormatRule
See Also