RemoveCol Method

Removes a column from the grid control.

Syntax

Public Sub RemoveCol(ByVal Index As Integer)

Applies To

Grid Object

Parameters

The following parameters are available:

Parameter Description
Index Required,determines which column should be removed from the control. It must be in the range between 0 and ColCount-1, or an Invalid Index error will occur.

Return Type

None

Remarks

To add columns, use the AddCol method. Alternatively, you may add or remove columns at the right of the grid by setting the ColCount property.

See Also

AddCol Method