Skip to main content

QueryCheckStatesEventArgs.Handled Property

Gets or sets whether the event is handled and no default processing is required.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public bool Handled { get; set; }

Property Value

Type Description
Boolean

true if default event processing is not required; false if default processing is required.

Remarks

When you handle the RepositoryItemCheckEdit.QueryCheckStateByValue and RepositoryItemCheckEdit.QueryValueByCheckState events to implement manual conversion from values to check states and vice versa, set the Handled event parameter to true. In this case, the values assigned to the QueryValueByCheckStateEventArgs.Value/QueryCheckStateByValueEventArgs.CheckState event parameters are not ignored.

If the Handled event parameter is left set to false, the values you assigned to the QueryValueByCheckStateEventArgs.Value/QueryCheckStateByValueEventArgs.CheckState event parameters are ignored. The actual check state/edit value will be calculated by the default processing mechanism, based on the RepositoryItemCheckEdit.ValueChecked, RepositoryItemCheckEdit.ValueUnchecked and RepositoryItemCheckEdit.ValueGrayed settings.

See Also