Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread TGrid - List Index Out of Bounds Error
Wed, May 27 2015 6:58 AMPermanent Link

Eivind

Hi

I noticed a List Index out of bounds error with the TGrid bound to a Dataset. It's only triggered when the Dataset is empty. To re-produce bind a TGrid to a Dataset. When the dataset is empty, call the Dataset.Insert and then call the Dataset.Cancel. This will trigger a List Index out of bounds error in all cases for me. If I try to call Dataset.Insert and Dataset.Cancel when there is at least one record in the dataset, all is good.

Eivind
Wed, May 27 2015 9:04 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eivind,

<< I noticed a List Index out of bounds error with the TGrid bound to a
Dataset. It's only triggered when the Dataset is empty. To re-produce bind a
TGrid to a Dataset. When the dataset is empty, call the Dataset.Insert and
then call the Dataset.Cancel. This will trigger a List Index out of bounds
error in all cases for me. If I try to call Dataset.Insert and
Dataset.Cancel when there is at least one record in the dataset, all is
good.  >>

I'll check it out.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Image