TcxCheckGroup Class
An editor displaying a set of check boxes.
Declaration
TcxCheckGroup = class(
TcxCustomCheckGroup
)
Remarks
Use the TcxCheckGroup editor when the edit value can be represented as a set of options. Each option can be represented by an individual check box that can have three states: unchecked, checked and grayed. Individual check boxes are represented by the TcxCheckGroupItem objects available via the Properties.Items property.
The editor supports four edit value formats. You can choose the required format using the Properties.EditValueFormat property. If you are not satisfied with the formats supplied, you can implement custom correspondence between the check states and the edit value. Handle the Properties.OnStatesToEditValue and Properties.OnEditValueToStates events.
The CalculateCheckStatesValue and CalculateCheckStates methods let you calculate the editor’s edit value by the items’ check states and vice versa.
The image below displays the TcxCheckGroup control’s sample appearance.
Note that you can alternatively use the TcxCheckListBox and TcxCheckComboBox controls that are used to edit values of the same type. If you need a data-aware check group, use the TcxDBCheckGroup editor.