DBGrid - double click and title click

Andrew Muir <[email protected]> Wed, 20 Aug 2003 10:58:30 +0930
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Hi All,
I have a dbgrid on a form.
I have an event for the OnTitleClick (which resorts the data - 1st click sorts ascending - 2nd click sorts descending) 
and an OnDblClick event which selects the record.

My problem is - if the user clicks on the column title twice in quick succession the OnDblClick event fires !!!
I don't want the double click to fire if the column title is clicked twice.

How to detect where in the grid the double click occurred? or How to disable the double click event from firing if column title was clicked?

TIA

Andy


[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi VCL Top Sites!
http://www.sandbrooksoftware.com/TS/TS2/Components.shtml
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/