Class DataSourceTableColumn

  • DataSourceTableColumn allows you to access and modify existing columns in aDataSourceTable.

  • This class should only be used with data connected to a database.

  • You can get the associated data source column or remove the column from the table using the available methods.

  • Using the methods of this class requires specific authorization scopes for spreadsheets.

DataSourceTableColumn

Access and modify an existing column in aDataSourceTable. To add columns to a datasource table, useDataSourceTable.addColumns(columnNames).

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

Methods

MethodReturn typeBrief description
getDataSourceColumn()DataSourceColumnGets the data source column.
remove()voidRemoves the column from theDataSourceTable.

Detailed documentation

getDataSourceColumn()

Gets the data source column.

Return

DataSourceColumn — The data source column.

Authorization

Scripts that use this method require authorization with one or more of the followingscopes:

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

remove()

Removes the column from theDataSourceTable.

Authorization

Scripts that use this method require authorization with one or more of the followingscopes:

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.