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

TcxCustomHeader.Sections Property

Provides access to the header’s collection of sections.

#Declaration

Delphi
property Sections: TcxHeaderSections read; write;

#Property Value

Type
TcxHeaderSections

#Remarks

The Sections property provides access to the header’s sections collection. This collection is represented by the TcxHeaderSections object and each item within it is an instance of the TcxHeaderSection class. The following code demonstrates adding a section to the header control and setting that section up:

Delphi
with cxHeader.Sections.Add do
begin
  Text := 'First Section';
  SortOrder := soAscending;
  AllowClick := False;
end;
See Also