Skip to main content

GridFormatRule.ApplyToRow Property

Gets or sets whether the format is applied to an entire row.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public bool ApplyToRow { get; set; }

Property Value

Type Default Description
Boolean false

true if the format is applied to the entire row; otherwise, false.

Remarks

If a GridFormatRule.Column‘s cell meets the current GridFormatRule object, the format is applied to a single cell of the GridFormatRule.Column or GridFormatRule.ColumnApplyTo column by default. If the ApplyToRow option is enabled, the format is applied to an entire row.

The ApplyToRow property is not in effect for the FormatConditionRuleDataBar and FormatConditionRuleIconSet formats.

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

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.

See Also