# Column class
{: .no_toc }

One column of a [**WaynesGrid**](/tB/Packages/CustomControls/WaynesGrid/index.md). Has a [**Caption**](#caption) that is shown in the column-header row and a [**Width**](#width) that the user can drag at run time. Elements of [**WaynesGrid.Columns**](/tB/Packages/CustomControls/WaynesGrid/index.md#columns).

```tb check_build
Dim cols(0 To 2) As Column
Set cols(0) = New Column
cols(0).Caption = "ID"
cols(0).Width = 80
Grid1.Columns = cols
```

## Properties

### Caption
{: .no_toc }

The text shown in the column-header cell. **String**. Default: `"Column"`.

### Width
{: .no_toc }

The column's width in pixels (unscaled by DPI). [**PixelCount**](/tB/Packages/CustomControls/Enumerations/PixelCount.md). Default: 100. Editable by the user at run time by dragging the resizer bar on the column's right edge; assignments at run time update the grid immediately.

## Events

### OnChanged
{: .no_toc }

Raised when [**Caption**](#caption) or [**Width**](#width) is assigned. The parent [**WaynesGrid**](/tB/Packages/CustomControls/WaynesGrid/index.md) listens for this and requests a repaint.
