Destructor

The Destructor for the DataTable class is:

  • ~DataTable();

The following table summarizes the functions each method performs in the DataTable class.

Table 1. DataTable Methods Summary

Method

Function

addColumn

Adds the new column.

getColumnNames

Gets all the column names.

getColumnIndex

Gets the corresponding column index.

getColumnCount

Gets the number of columns.

clear

Clears the data in DataTable.

iterator

An iterator that contains all DataRows in the DataTable.

addRow

Adds a DataRow to the DataTable.

newRow

Creates a new DataRow in the DataTable.

getRowCount

Gets the number of the DataRows in this DataTable.

merge

Merges the given DataTable and the current DataTable.