Back to Devexpress

FormatConditionBase.ApplyToRow Property

wpf-devexpress-dot-xpf-dot-grid-dot-formatconditionbase-e32d929f.md

latest2.7 KB
Original Source

FormatConditionBase.ApplyToRow Property

Specifies whether to apply the conditional format to the entire row. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool ApplyToRow { get; set; }
vb
Public Property ApplyToRow As Boolean

Property Value

TypeDescription
Boolean

true to apply the conditional format to the entire row; otherwise, false.

|

Remarks

If the ApplyToRow property is set to false , a conditional format is only applied to the column’s cells.

You can apply a conditional format to the entire row:

  • In conditional formatting menu:

  • In conditional formatting manager:

If the ApplyToRow property is set to true , the GridControl does not display images specified by the Format.Icon property.

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.

wpf-grid-scrollbar-annotations/CS/WpfApplication25/MainWindow.xaml#L31

xml
<dxg:TableView.FormatConditions>
    <dxg:FormatCondition Expression="[Number] &gt; 2.0m and [Number] &lt; 4.0m" FieldName="Number" ApplyToRow="True">
        <dx:Format Background="Green"/>

See Also

Conditional Formats

FormatConditionBase Class

FormatConditionBase Members

DevExpress.Xpf.Grid Namespace