An issue encountered with the grid, where an invalid selection error consistently appears on the line immediately following the last row in the grid. For example, with one row, the error manifests on the second line; with two rows, on the third line, and so forth. Please find the attached screenshot to illustrate this issue. Kindly investigate this matter and provide guidance on resolving it.