TcxCustomCheckGroupProperties.OnStatesToEditValue Event
Enables you to convert a check state to an edit value manually.
Declaration
property OnStatesToEditValue: TcxCheckStatesToValueEvent read; write;
Remarks
The OnStatesToEditValue 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 control’s States property). Handle this event if none of the supported edit value formats suit your needs. Note that in this case, you should also handle the Properties.OnEditValueToStates event. Please refer to the latter’s description for details.
The event’s Sender parameter specifies the editor whose check states are converted to edit value. The ACheckStates parameter enables you to determine the current check states. The corresponding edit value should be written to the AValue parameter.
Note
Use the CalculateCheckStatesValue and CalculateCheckStates methods to calculate the editor’s edit value by the items’ check states and vice versa.