DataSource.RowCount

From Xojo Documentation

Method

DataSource.RowCount() As Integer

Supported for all project types and targets.

The number of columns returned by the DataSource.