Skip to main content

TcxCustomDataController.RowCount Property

Returns the number of rows in a data controller.

Declaration

property RowCount: Integer read;

Property Value

Type
Integer

Remarks

The number of records stored in a data controller is specified by its RecordCount property. In bound and provider modes, it identifies the number of records loaded from a data source. Note that when grid mode is applied, the value returned by RecordCount is determined by the GridModeBufferCount property.

The RowCount property returns the number of rows (data records and grouping rows) that can be actually displayed on screen. The RowCount value can differ from RecordCount when grouping or filtering data is applied.

For instance, when the data controller filters records from a database table, RowCount returns the number of rows after applying filter condition(s). The RecordCount property, in this case, returns the total number of records obtained from the table.

See Also