Thanks. Infact it seems the best way to deal with inplace editors is to subclass a new grid with its own inplace editor. I think the inplace editor is a protected property. V. Simple. Alternatively, the OnDrawDataCell has a state parameter ... so when the cell is drawn I can check (gdFocused in State) and draw appropriately (using the Rect Param etc todetermine the bounds of my editor).
 
Thanks for the suggestion ....
 
Regards
 
-----Original Message-----
From: Moises Lopez [mailto:[EMAIL PROTECTED]]
Sent: 21 November 2002 19:55
To: Multiple recipients of list delphi
Subject: Re: [DUG]: DBGRid ... which Cell is Active

howdy there...

you could get the coordinates on the OnCellClick event sth. like

 x := Mouse.CursorPos.X;
 y := Mouse.CursorPos.Y;

as for detecting which column.. uhh
the OnCellClick event has a Column parameter.. guess that works

hth
moises



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Notice of Legal Status and Confidential Information: This electronic mail message and any accompanying attachments may contain information that is privileged and CONFIDENTIAL. If you are not the intended recipient you are advised that any use, review, dissemination, distribution or reproduction of the information is strictly prohibited and may be unlawful. If you have received this document in error, please notify the sender immediately and destroy the message.

Reply via email to