Hi all,
I need to enable the user to click in any cell of the first left column (Column 0) of a StringGrid (with no fixed columns) result being that the whole row in which that cell is is highlighted/be colored - whichever would allow the changed color to stay with that row when it will be later sorted in a separate function.
This should allow highlighting not only adjacent but also nonadjacent rows.
Also, after clicking again at the highlighted row, the highlight should disappear.
I changed the property goRowSelect to true but clicking the cells highlights only single row and immediately clears the highlight when some other cell is clicked... Also, Shift here works, but Ctrl (selecting nonadjacent rows does not...)
Can anyone help me with this?
Also, what is the way to detect highlighted/colored rows from inside a function?
thanks,
I need to enable the user to click in any cell of the first left column (Column 0) of a StringGrid (with no fixed columns) result being that the whole row in which that cell is is highlighted/be colored - whichever would allow the changed color to stay with that row when it will be later sorted in a separate function.
This should allow highlighting not only adjacent but also nonadjacent rows.
Also, after clicking again at the highlighted row, the highlight should disappear.
I changed the property goRowSelect to true but clicking the cells highlights only single row and immediately clears the highlight when some other cell is clicked... Also, Shift here works, but Ctrl (selecting nonadjacent rows does not...)
Can anyone help me with this?
Also, what is the way to detect highlighted/colored rows from inside a function?
thanks,