Icon View Incident Report

Serious Serious
Reported By: Ronald van der Pas
Reported On: 1/30/2021
For: Version 3.00 Build 1
# 4813 Setting the RowCount Property for Un-bound TGrid Instances Does Not Create the Underlying Rows

I have a TGrid that is populated with data. I try to read the values

Showmessage(Grid1.Rows.Row[0].Value[0]);

But I keep getting the message:

Error. List index 0 out of bounds

Line 1


Comments Comments
Thanks to Raul for gleaning that the developer was setting the unbound RowCount directly, which was the cause of the bug:

I can duplicate the error with unbound if I set RowCount manually and then go and edit the cells (they are set as edits).

Adding rows properly with "grid.InsertRow" works OK.

Either it's a bug (if one can use RowCount to increase number of rows) or RowCount should be read-only property.


Resolution Resolution
Fixed Problem on 2/4/2021 in version 3.01 build 1


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image