Reported By: Ronald van der Pas Reported On: 1/30/2021 For: Version 3.00 Build 1
# 4813Setting 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
CommentsThanks 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.
ResolutionFixed Problem on 2/4/2021 in version 3.01 build 1
Products AffectedElevate Web Builder Elevate Web Builder Trial