Skip to main content
A newer version of this page is available. .

TableView.FormatConditionsSource Property

Gets or set a list of conditional formats applied to the table view.

Namespace: DevExpress.Xpf.Grid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public IEnumerable FormatConditionsSource { get; set; }

Property Value

Type Description
IEnumerable

The source from which the grid generates conditional formats.

Remarks

The TableView supports binding to a collection of objects containing conditional format settings. You can describe this collection of objects in Model or ViewModel.

The TableView generates conditional formats based on conditional format templates. To choose the required template based on the conditional format type, use the Template Selector assigned to the TableView.FormatConditionGeneratorTemplateSelector property.

If all conditional formats can be described using a single template, you have no need to create a conditional format template selector. Instead, assign this template to the grid view’s TableView.FormatConditionGeneratorTemplate property.

See the Binding to a Collection of Conditional Formatting Rules topic to learn more.

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