Back to Devexpress

CheckEdit.QueryCheckStateByValue Event

windowsforms-devexpress-dot-xtraeditors-dot-checkedit-1a3ffb3c.md

latest3.1 KB
Original Source

CheckEdit.QueryCheckStateByValue Event

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Event Data

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

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

Remarks

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

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

Refer to the RepositoryItemCheckEdit.QueryCheckStateByValue topic for more information.

See Also

QueryCheckStateByValue

QueryValueByCheckState

CheckEdit Class

CheckEdit Members

DevExpress.XtraEditors Namespace