GetColumnCount

Gets the number of columns.

Syntax

int getColumnCount(DataTable* dataTable ) 

Parameters

  • Datatable - the DataTable to which this function applies

Results

Returns the number of columns.

Example

// Assume that dataTable is given here int nColumnCount ;
nColumnCount = getColumnCount( dataTable ) ;