piDefaultIndex - cWebColumnButton
Index to use when sorting the grid by this colum
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer piDefaultIndex
| Access Type | Syntax |
|---|---|
| Read Access: | Get piDefaultIndex to IntegerVariable |
| Write Access: | Set piDefaultIndex to IntegerVariable/Value |
Description
Index to use when sorting the grid by this column, if peDbGridType is set to gtAutomatic.
If peDbGridType is gtAllData or gtManual, this property is ignored.
If the grid is relates-to constrained to a parent, this property is ignored as this will not be an efficient index.
Each column's piDefaultIndex value is determined when your view is initialized.
Do not set the property. If you wish to change the index being used by a column, augment IndexOrder.
The cWebList piSortColumn determines which column is being sorted.
Controlling Index Order
When working with data-aware lists, follow these guidelines for controlling index order:
-
Use piSortColumn to control index order
-
Always set an initial piSortColumn value
-
If you need to further control index order, augment the IndexOrder function
-
Do not set these properties: cWebList piOrdering cWebColumn piDefaultIndexDataDictionary Ordering See Indexes and Ordering with Data Aware cWebLists for a more complete description of this process.