DataColumnCollection

Overview

The DataColumnCollection is used to hold a set of DataColumns in the DataTable instance. Usually, it is filled with columns by a RemoteDataAdapter while initializing the data table with the Schema. But you can still add/remove columns manually, for example for adding CalculatedDataColumn or LookupDataColumn columns.

Location

 

add

Creates a new DataColumn instance and adds it to the table.

 

method add: DataColumn

 

DataColumn add()

add (DataColumn)

Adds the specified data column to the table. Note, that provided column should not belong to any other table.

 

method add(aColumn: DataColumn)

 

void add(DataColumn aColumn)

Parameters:

  • aColumn: The data column to be added to the table.

add (String): DataColumn

Creates a new DataColumn instance with the specified name and adds it to the table.

 

method add(aColumnName: String): DataColumn

 

DataColumn add(String aColumnName)

Parameters:

  • aColumnName: The name of the new column.

add (String, Class): DataColumn

Creates a new DataColumn instance with the specified name and type and adds it to the table.

 

method add(aColumnName: String; aDataType: Class): DataColumn

 

DataColumn add(String aColumnName, Class aDataType)

Parameters:

  • aColumnName: The name of the new column.
  • aDataType: The data type of the column.

clear

Removes all columns from the table.

 

method clear

 

void clear()

Column

 

property Column[aName: String]: DataColumn read;

 

DataColumn Column[String aName] { __get; }

Column

 

property Column[x: Integer]: DataColumn read;

 

DataColumn Column[Integer x] { __get; }

contains

Returns TRUE if the column collection cointans the specified column.

 

method contains(aColumn: DataColumn): Boolean

 

Boolean contains(DataColumn aColumn)

Parameters:

  • aColumn: The column whose presence in this collection is to be tested.

Count

 

property Count: Integer read;

 

Integer Count { __get; }

iterator  final

Returns an iterator over the elements in this collection in proper sequence.

 

method iterator: Iterator<DataColumn>

 

Iterator<DataColumn> iterator()

remove (DataColumn)

Removes the specified column from the collection, if it is present.

 

method remove(aColumn: DataColumn)

 

void remove(DataColumn aColumn)

Parameters:

  • aColumn: The column to be removed from the collection, if present.

remove (String)

Removes the column with the specified name from the collection, if it is present.

 

method remove(aColumnName: String)

 

void remove(String aColumnName)

Parameters:

  • aColumnName: The name of the column to remove.

 

Column

 

property Column[aName: String]: DataColumn read;

 

DataColumn Column[String aName] { __get; }

Column

 

property Column[x: Integer]: DataColumn read;

 

DataColumn Column[Integer x] { __get; }

Count

 

property Count: Integer read;

 

Integer Count { __get; }

 

add

Creates a new DataColumn instance and adds it to the table.

 

method add: DataColumn

 

DataColumn add()

add (DataColumn)

Adds the specified data column to the table. Note, that provided column should not belong to any other table.

 

method add(aColumn: DataColumn)

 

void add(DataColumn aColumn)

Parameters:

  • aColumn: The data column to be added to the table.

add (String): DataColumn

Creates a new DataColumn instance with the specified name and adds it to the table.

 

method add(aColumnName: String): DataColumn

 

DataColumn add(String aColumnName)

Parameters:

  • aColumnName: The name of the new column.

add (String, Class): DataColumn

Creates a new DataColumn instance with the specified name and type and adds it to the table.

 

method add(aColumnName: String; aDataType: Class): DataColumn

 

DataColumn add(String aColumnName, Class aDataType)

Parameters:

  • aColumnName: The name of the new column.
  • aDataType: The data type of the column.

clear

Removes all columns from the table.

 

method clear

 

void clear()

contains

Returns TRUE if the column collection cointans the specified column.

 

method contains(aColumn: DataColumn): Boolean

 

Boolean contains(DataColumn aColumn)

Parameters:

  • aColumn: The column whose presence in this collection is to be tested.

iterator  final

Returns an iterator over the elements in this collection in proper sequence.

 

method iterator: Iterator<DataColumn>

 

Iterator<DataColumn> iterator()

remove (DataColumn)

Removes the specified column from the collection, if it is present.

 

method remove(aColumn: DataColumn)

 

void remove(DataColumn aColumn)

Parameters:

  • aColumn: The column to be removed from the collection, if present.

remove (String)

Removes the column with the specified name from the collection, if it is present.

 

method remove(aColumnName: String)

 

void remove(String aColumnName)

Parameters:

  • aColumnName: The name of the column to remove.