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

TdxListViewColumnClickEvent Type

The procedural type for list column click handlers.

#Declaration

Delphi
TdxListViewColumnClickEvent = procedure(Sender: TdxCustomListView; AColumn: TdxListColumn) of object;

#Parameters

Name Type Description
Sender TdxCustomListView

The List View control that raised the click event.

AColumn TdxListColumn

The target list column.

#Remarks

The List View’s OnColumnClick event handler below inverts the sort order:

procedure TForm1.dxListViewControl1ColumnClick(Sender: TdxCustomListView;
  AColumn: TdxListColumn);
begin
  if AColumn.SortOrder = soAscending then
    AColumn.SortOrder := soDescending
  else
    AColumn.SortOrder := soAscending;
end; 

The List View’s OnColumnClick event references the TdxListViewColumnClickEvent type.

See Also