Returns true if the column name exists, false otherwise.

Syntax

Smartsite SXML CopyCode image Copy Code
boolean datatable.columns.exists(datatable dataTable, string columnName)

Parameters

Name Data Type Description
dataTable DataTable The datatable whose columns will be searched.
columnName String The name of the column you are looking for.

Return Value

Data Type Description
Boolean Returns true if the column exists, false otherwise.

Expand image Example

SXML