GetColumnCount

Gets the number of columns in the DataTable.

Syntax

public int getColumnCount() 

Parameters

  • None

Results

Returns the number of columns.

Example

int columnCount = dataTable.getColumnCount();