Skip to content

MoveToColumnObject - cCJGrid

Attempts to move to the Column of the passed column object handle. Returns False if successful.

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
hoCol Handle Column object to navigate to

Syntax

Function MoveToColumnObject Handle hoCol Returns Boolean

Call Example

Get MoveToColumnObject hoCol to BooleanVariable

Description

MoveToColumnObject attempts to move, within the SelectedRow, to the column represented by the passed column object handle. It returns False if the move was successful and True if it was cancelled. A column change may be cancelled for various reasons such as the grid does not support column navigation (pbFocusSubItems is False), or the column not being focusable (IsColumnFocusable).

If the column change is successful, a full column change set of events are fired and SelectedColumn reflects the new column.

The column object handle passed can be an object name or a handle acquired messages such as ColumnObject and SelectedColumnObject.

Get MoveToColumnObject (oCustomerName) to bCancel

See Also

MoveToFirstEnterableColumn | MoveToLastEnterableColumn | MoveToRow

Return Value

Returns False if the move was successful, True if cancelled.