Skip to main content

GridFormatRule.Column Property

Gets or sets a column that provides values to test against the current format rule. By default, the format is applied to this column.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

[DefaultValue(null)]
[DXCategory("Behavior")]
public GridColumn Column { get; set; }

Property Value

Type Default Description
GridColumn null

The column that provides values to test against the current formatting rule.

Remarks

By default, if a cell in the Column meets the current GridFormatRule object, the format is applied to this cell. However, you can choose another target column using the GridFormatRule.ColumnApplyTo property.

In addition, the format can be applied to the entire row. To accomplish this, set the GridFormatRule.ApplyToRow property to true.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Column 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