Back to Devexpress

CheckEdit.QueryValueByCheckState Event

windowsforms-devexpress-dot-xtraeditors-dot-checkedit-d576735d.md

latest3.1 KB
Original Source

CheckEdit.QueryValueByCheckState Event

Allows for custom conversion from a check state (checked, unchecked and indeterminate) to an edit value.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event QueryValueByCheckStateEventHandler QueryValueByCheckState
vb
<DXCategory("Events")>
Public Event QueryValueByCheckState As QueryValueByCheckStateEventHandler

Event Data

The QueryValueByCheckState event's data class is QueryValueByCheckStateEventArgs. The following properties provide information specific to this event:

PropertyDescription
CheckStateGets the editor’s current check state.
HandledGets or sets whether the event is handled and no default processing is required. Inherited from QueryCheckStatesEventArgs.
ValueUse this property to set the edit value that corresponds to the current check state.

Remarks

The QueryValueByCheckState and CheckEdit.QueryCheckStateByValue events allow you to manually convert from values to check states and vice versa.

The editor’s QueryValueByCheckState event is the equivalent of the RepositoryItemCheckEdit.QueryValueByCheckState event available from the CheckEdit.Properties object. Thus, adding/removing an event handler for the current event actually affects the RepositoryItemCheckEdit.QueryValueByCheckState event.

Refer to the RepositoryItemCheckEdit.QueryCheckStateByValue topic for more information.

See Also

QueryValueByCheckState

QueryCheckStateByValue

CheckEdit Class

CheckEdit Members

DevExpress.XtraEditors Namespace