DataSourceTableColumn

Access and modify an existing column in a `https://developers.google.com/apps-script/reference/spreadsheet/data-source-table`. To add columns to a data
source table, use `https://developers.google.com/apps-script/reference/spreadsheet/data-source-table#addColumns(String)`.


**Only use this class with data that's connected to a database.**

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/spreadsheet/data-source-table-column#getDataSourceColumn()` | `https://developers.google.com/apps-script/reference/spreadsheet/data-source-column` | Gets the data source column. |
| `https://developers.google.com/apps-script/reference/spreadsheet/data-source-table-column#remove()` | `void` | Removes the column from the `https://developers.google.com/apps-script/reference/spreadsheet/data-source-table`. |

## Detailed documentation

### `getDataSourceColumn()`

Gets the data source column.

#### Return


`https://developers.google.com/apps-script/reference/spreadsheet/data-source-column` --- The data source column.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/spreadsheets.currentonly`
- `https://www.googleapis.com/auth/spreadsheets`

*** ** * ** ***

### `remove()`

Removes the column from the `https://developers.google.com/apps-script/reference/spreadsheet/data-source-table`.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/spreadsheets.currentonly`
- `https://www.googleapis.com/auth/spreadsheets`