Forum Discussion

RodrigoJr's avatar
RodrigoJr
Occasional Contributor
7 years ago

The grid row´s index 20 is out of bounds

I'm having trouble using ClickCell in a Borland TDBGrid, TestObj.ClickCell (Row, Column, Shift) you are returning an error message: 'The grid row's index 20 is out of bounds'. Can anyone help me?...
  • tristaanogre's avatar
    tristaanogre
    7 years ago

    I could be wrong, but it sounds like that, even though there are 28 lines in the grid, the rows that are available for cell referencing only number 0-14.  Your code sould take into consideration the visible rows, not the total rows, when determining what row to click on.