|
Borland StringGrid
I'm trying to achieve this using Borland's StringGrid. I'm using Borland 5.
For example, I have 2 columns, cell[0][1]...cell[0][n] is sequencially written with an int commencing at 1 through to n, but only each time a cell[1][n] is input a number, and the 'Enter' key is pressed *or* the mouse is clicked to another cell (or even another component). Remark: cell[0][n] is only assigned a (sequencial) number if and only if cell[1][n] has data.
Also, say rows 1 to 5 have data, then when the user tries to click on a cell on row 7 or below it, the focus will always be set to row 6 (because this is the next empty cell).
Don't know how to do this. Perhaps, someone here could help me.
thanks.
|