In Delphi 2010 is there any way to detect which cell was clicked when dgRowSelect
is set to True ?
Normally I would use the OnCellClick(Column: TColumn)
event handler, but this does not work as expected. With dgRowSelect = False
this procedure gets passed the column that was clicked, but with dgRowSelect = True
this procedure is passed the first column, regardless of which column was clicked.
I can't work out where the code is that calls the OnCellClick
passing in the TColumn
parameter, if I could find that I might be able to work out how to fix this odd behaviour.