I am using a StringGrid to display paths I am searching on a computer. In my function to show what path and file was found I am doing this:
StringGrid1.Cells[1,i] := Path + Rec.Name;
StringGrid1.AutoSizeColumn(0);
StringGrid1.RowCount := i + 1;
Inc(i);
However as soon as I run this I get an exception that says:
Index out of range. Cell[Col=1 Row = 2090325504]
I cannot understand this because I set the rowcount to like 100,000 in the Property Editor to try and see if that was an issue but that did not work.
Any ideas?
Thanks,
Tom