this error comes when there is
no such index available in object
it's about you have 3 cards B,C,D but I am asking for 'A' or 'Z'
eg.
grid1 have 2 rows
rowno index
1 0
2 1
Now if we try to fetch 3rd row (means index=2) this kind of error occur
grid1.rows[2].cells[0].value
check your code some where same thing happened as above example
to solve error,
write protective conditions so that such situation never occur
eg.
if (RowId > grid1.rows.count-1)
grid1.rows[RowId].cells[0].value
Happy Coding!
:)