TcxCustomDataController.RecordCount Property
Defines the number of records provided by the data controller.
Declaration
property RecordCount: Integer read; write;
Property Value
Type |
---|
Integer |
Remarks
Use the RecordCount property to get and set the number of records displayed (i.e. the number of rows) in the data controller. You can change the number of records in the data controller using the RecordCount property only in provider and unbound modes. Setting the RecordCount property to a value exceeding the actual number of records in a data source forces a grid control to display extra empty records.
In bound mode, the data controller assigns the RecordCount automatically when loading records from the underlying dataset. You must not change RecordCount in this mode. You can use the data controller’s Append, Insert, DeleteFocused and DeleteSelection methods to add and delete records.