Back to Devexpress

GridFormatRule.ColumnApplyTo Property

windowsforms-devexpress-dot-xtragrid-dot-gridformatrule.md

latest1.9 KB
Original Source

GridFormatRule.ColumnApplyTo Property

Gets or sets a column, to which the format should be applied instead of the column specified by the GridFormatRule.Column property.

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Behavior")]
public GridColumn ColumnApplyTo { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Behavior")>
Public Property ColumnApplyTo As GridColumn

Property Value

TypeDefaultDescription
GridColumnnull

The target column to which the format is applied.

|

Remarks

If the ColumnApplyTo property is not set, the format is applied to cells of the column specified by the GridFormatRule.Column property.

In addition, you can apply the format to the entire row by setting the GridFormatRule.ApplyToRow property to true.

See Also

Column

ApplyToRow

GridFormatRule Class

GridFormatRule Members

DevExpress.XtraGrid Namespace