OnColumnClick Property

Sets or returns the name of the macro to be run when the ColumnClick event occurs.

object.OnColumnClick = [string]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and string is a string expression specifying the script or macro to run when the Column Click event is triggered.

Client support

   Newlook Smartclient only.

Use

Use this property to run a script or macro when the column header of the list view control is clicked by the user. This is useful if you need to run some logic when the user sorts the list view.

The Sorted, SortKey, and SortOrder properties are commonly used in code to sort the ListItem objects in the clicked column.

TIP:

This property can only be set if the HideColumnHeaders property is False.

See Also

Sorted property | SortKey property | SortOrder property

Applies To

ListView control


© 2004-2021 looksoftware. All rights reserved.