# Sequence number column

You can add a sequence number column into a Data Grid which allocates a row number to each individual record.

## Adding a sequence number column

To add the column, from the Data Grid toolbar:

- Select [![](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/HDI-add-a-Sequence-Number-Column-Q418-(1).png>)](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/HDI-add-a-Sequence-Number-Column-Q418-(1).png>)**Add User Code**

In the window that opens:

- Enter the column **Heading Description** - e.g. Row Number
- Click to select the **Row Number (starting from)**
- Enter the number from which you wish to start the sequence, click **Add** and then build the display

A new column is inserted and each row allocated its own sequence number:

[![](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/add-sequence-number-column/HDI-add-a-Sequence-Number-Column-Q418-(2).png>)](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/add-sequence-number-column/HDI-add-a-Sequence-Number-Column-Q418-(2).png>)

> [!NOTE]
>
> Behind the scenes it is an expression being used to add row number information into the Data Grid display. Should you wish to amend the sequence numbers:

- Right-click on the column header and select **Edit Expression...**

This will take you to the Expression window where you simply amend the starting number inside the brackets

[![](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/add-sequence-number-column/HDI-add-a-Sequence-Number-Column-Q418-(3).png>)](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/add-sequence-number-column/HDI-add-a-Sequence-Number-Column-Q418-(3).png>)

- Click **OK** and rebuild the display

  [![](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/add-sequence-number-column/HDI-add-User-Codes-Q418-(3).png>)](<https://help.apteco.com/assets/images/faststats/visualisation/data-grid/add-sequence-number-column/HDI-add-User-Codes-Q418-(3).png>)
