Skip to main content

TcxCustomCheckListBox.OnCheckStatesToEditValue Event

Enables you to convert check states to the edit value manually.

Declaration

property OnCheckStatesToEditValue: TcxCheckStatesToEditValueEvent read; write;

Remarks

The OnCheckStatesToEditValue event fires each time the check states change (when an end-user clicks individual check boxes or when the check states are changed via code using the items’ State property or editor’s EditValue property). Handle this event if none of supported edit value formats suits your needs. Note that in this case, you should also handle the OnEditValueToCheckStates event. Please refer to the latter event description for details.

The event’s ACheckStates parameter enables you to determine the current check states. The corresponding edit value should be written to the AEditValue parameter.

Note

Use the CalculateCheckStatesValue and CalculateCheckStates methods to calculate the editor’s edit value by the items’ check states and vice versa.

See Also