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.v20.1.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool CausesValidation { get; set; }
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Overridable Property CausesValidation As Boolean

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.

See Also