TStringGrid option goAutoAddRows has restricted functionality
Original Reporter info from Mantis: igoddard
-
Reporter name: Ian Goddard
Original Reporter info from Mantis: igoddard
- Reporter name: Ian Goddard
Description:
ASAICS the auto-add rows only adds rows if (a) the existing last row has at least one non-empty cell and (b) the user uses the down-arrow key to attempt to move down. The following use cases need to be dealt with:
-
The user wishes to ensure the grid has all the rows needed before entering data. In this case it should be possible to add rows irrespective of whether the last row has a non-empty cell.
-
The user wishes to use tab rather than arrow keys for navigation. A new row should be added if auto advance is set to right and down (or laft and down) and the user presses tab at the appropriate end of the row. A new row should also be added if auto advance is set to down and the user presses tab anywhere on the last row.
-
The user wishes to use the mouse for navigation. If the user clicks on the space below the last row and the cursor is not on the last row it will move down to the last row. It may seem intuitive to the user that if the cursor is already on the last row another row should be added and the cursor moved to that. This last case is more marginal but should be considered.