Class: cCJGridColumnRowIndicator

Properties  Events  Methods    Index of Classes

A grid column class that can be used to create a row indicator in the first grid column

Hierarchy

cObject
---DfComAutomationObject
------cComAutomationObject
---------cCJGridColumnXTP
------------cCJGridColumn
---------------cCJGridColumnRowIndicator

Library: Windows Application Class Library

Package: cCJGridColumnRowIndicator.pkg

Description

The cCJGridColumnRowIndicator class is used to create a current row indicator column. This creates a non-focusable column that displays an arrow marker in the current row (the cCJGridDataSource object's SelectedRow). It is expected that this will be the first column in your grid. The cCJGridColumnRowIndicator is a subclass of cCJGridColumn and can be used with cCJGrid and cDbCJGrid objects.

Object oOrderDtl_Grid is a cDbCJGrid
    Set Server to OrderDtl_DD
    Set Ordering to 1
    Set Size to 63 377
    Set Location to 90 3
    Set peAnchors to anAll

    Object oMark is a cCJGridColumnRowIndicator
    End_Object
    
    Object oInvt_Item_ID is a cDbCJGridColumn
        Entry_Item Invt.Item_ID
        Set piWidth to 91
        Set psCaption to "Item ID"
        Set psImage to "ActionPrompt.ico"
    End_Object

    Object oInvt_Description is a cDbCJGridColumn
        Entry_Item Invt.Description
        Set piWidth to 213
        Set psCaption to "Description"
    End_Object

    : 
    
End_Object


If you create a row indicator object, you are creating a real column object and it will be a real column in your datasource. If you are processing data in your datasource by index number, make sure you account for this column (i.e., start at 1 and not 0). If you employ the recommended approach of using the cCJGridColumn property piColumnId to determine a column's index, this is a non-issue.

Note:
This column must have a piWidth of at least 18 pixels to properly display the arrow.