Skip to main content
Bar

BarItem.CausesValidation Property

Gets or sets whether data validation is performed on the currently focused control when clicking on the bar item.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool CausesValidation { get; set; }

Property Value

Type Default Description
Boolean false

true if data validation is performed on the currently focused control when clicking on the bar item; otherwise, false

Remarks

If the CausesValidation property is set to true, a click on the bar item invokes the ValidateChildren() method. See this topic in MSDN to learn more.

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