wpf-devexpress-dot-xpf-dot-grid-dot-formatconditionbase-81f11c91.md
Gets or sets the data source field name of the column to which to apply the conditional format. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public string FieldName { get; set; }
Public Property FieldName As String
| Type | Description |
|---|---|
| String |
A String value that is the data source field name of the column to which to apply the conditional format.
|
See the Conditional Formats topic to learn more.
The following code snippets (auto-collected from DevExpress Examples) contain references to the FieldName 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-data-grid-apply-conditional-formatting/CS/ConditionalFormatting/MainWindow.xaml#L22
<dxg:TableView.FormatConditions>
<dxg:DataBarFormatCondition FieldName="Sales" PredefinedFormatName="RedGradientDataBar"/>
<dxg:TopBottomRuleFormatCondition Expression="[Sales]" Rule="TopPercent" Threshold="10" PredefinedFormatName="BoldText"/>
wpf-grid-scrollbar-annotations/CS/WpfApplication25/MainWindow.xaml#L31
<dxg:TableView.FormatConditions>
<dxg:FormatCondition Expression="[Number] > 2.0m and [Number] < 4.0m" FieldName="Number" ApplyToRow="True">
<dx:Format Background="Green"/>
See Also