Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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