Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCheckGroup Class

An editor displaying a set of check boxes.

#Declaration

Delphi
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.

See Also