Skip to main content

TdxListViewColumnClickEvent Type

The procedural type for list column click handlers.

Declaration

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