Type | Description | |||
Long | A Long expression that specifies the index of the column from the current cursor location. |
The following sample toggles the cell's bold attribute when the user right clicks the control:
Private Sub G2Host1_Context() With G2Host1 If (.HostContext.HitTest And exHTValidItem) Then If (.HostContext.HitTest And exHTValidColumn) Then .Host.Items.CellBold(.HostContext.Item, .HostContext.Column) = Not .Host.Items.CellBold(.HostContext.Item, .HostContext.Column) End If End If End With End Sub