Back to Devexpress

TableView.FormatConditionsSource Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-f9dbea5f.md

latest2.2 KB
Original Source

TableView.FormatConditionsSource Property

Gets or set the source from which the grid generates conditional formats.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public IEnumerable FormatConditionsSource { get; set; }
vb
Public Property FormatConditionsSource As IEnumerable

Property Value

TypeDescription
IEnumerable

The source from which the grid generates conditional formats.

|

Remarks

You can define conditional formatting rules in a ViewModel and apply them to the GridControl. To do this, follow the steps below:

  1. Create a collection of conditional formatting rules in a ViewModel.

  2. Specify a data template that generates format conditions:

  3. Assign the conditional formatting rule collection to the FormatConditionsSource property and the format condition template to the FormatConditionGeneratorTemplate property:

Refer to the following help topic for more information: How to: Bind the Grid to a Collection of Conditional Formatting Rules.

See Also

FormatConditionGeneratorTemplate

FormatConditionGeneratorTemplateSelector

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace