Back to Devexpress

QueryCheckStatesEventArgs.Handled Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-querycheckstateseventargs.md

latest3.1 KB
Original Source

QueryCheckStatesEventArgs.Handled Property

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

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool Handled { get; set; }
vb
Public Property Handled As Boolean

Property Value

TypeDescription
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

QueryCheckStateByValue

QueryValueByCheckState

QueryCheckStatesEventArgs Class

QueryCheckStatesEventArgs Members

DevExpress.XtraEditors.Controls Namespace