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