BBjStandardGrid::setColumnSortedByRelatedData
Description
In BBj 6.00 and higher, this BBjStandardGrid method specifies whether a particular column is to be sorted by the related data rather than by the display text.
Syntax
Return Value | Method |
---|---|
void | setColumnSortedByRelatedData(int columnIndex, boolean sortByRelated) |
Parameters
Parameter | Description |
---|---|
columnIndex | Specifies the zero-based index on which to sort. |
sortByRelated | Indicates whether
data should be sorted by related data.
|
Return Value
None.
Remarks
A column is always in one of three states:
- Unsorted
- Sorted by display text
- Sorted by related data
Calling setColumnSortedByRelatedData(columnIndex, 1) immediately sorts the column by the related data. If the column is already sorted by related data, setting setColumnSortedByRelatedData to false (0) will consider the column as unsorted.
If a column is sorted by related text, calling BBjStandardGrid::sortByColumn does not change the state of the column.
Changing the sorting order of one column changes all other columns to assume an unsorted state.
Example
|
See Also
BBjStandardGrid::isColumnSortedByRelatedData
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.