Skip to content

pbHeaderTogglesDirection - DataList

Lets you use the header to change indexes and to change the index direction

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbHeaderTogglesDirection
Access Type Syntax
Read Access: Get pbHeaderTogglesDirection to BooleanVariable
Write Access: Set pbHeaderTogglesDirection to BooleanVariable/Value

Description

When pbHeaderTogglesDirection is true, clicking on a header will reverse the index, if making such a change is appropriate. The change is appropriate a) the grid already has the focus, b) the header column selected contains the current item and c) the column has an index associated with it.

pbHeaderTogglesDirection lets you use the header to change indexes and to change the index direction. If you click on a new header, the focus is moved to the new column and the index is changed (assuming auto_index_state is True). If you click a second time, the index will change directions.

The message Header_Mouse_Click uses this property to provide this behavior.

This should not be used with batch lists.

Default is false.