Control Object Properties
SortOnHdrClick User initiated Column sorting
  The 'SortOnHdrClick property is a +PxPlus Exclusive
Description This property is used to control the sorting of grid or listview columns based on the user clicking the column header.
   
Grid usage On the Grid, the property exists both for the complete grid and on each column. To reference the Grid settings, set 'Column to zero prior accessing the property. To reference a column, set the 'Column property to the desired column prior access.

There are three values allowed for this property:

 0 = Disable sorting on click of column header
 1 = Enable sorting on click of column header
-1 = Use grid default setting (column only)

When setting the property for a specific column, you can specify a value of -1 which forces the column to adhere to the current Grid default setting.

   
List view usage When used on the List view control (Report format only), this property is used to enable/disable the column sorting options. Setting the property to 1 enables columns sorting, setting it to zero disables column sorting.
   
Default GRID: 0 - Column sorting is disabled on the Grid and all Columns.
LISTVIEW: The default is based on the options used to create the control (option 'q' suppresses sorting)
   
Used by GRID LISTVIEW