Adds a new column to the grid control.
Public Sub AddCol(Optional ByVal Index As Integer = -1)
Grid Object
The following parameters are available:
Parameter | Description |
Index | Zero-based index representing the position within the grid where the new column is placed. If Index is omitted, the new column is added at the right of the grid. |
None
To remove columns, use the RemoveCol method. Alternatively, you may add or remove columns at the right of the grid by setting the ColCount property.