Board index » delphi » Double Click or Click on DBGrid Indicator Column

Double Click or Click on DBGrid Indicator Column

Can anybody let me know which event I should use for Double Click or Click
in the Indicator Column (the most left column of TDBGRID)?

Appreciate for your help.

 

Re:Double Click or Click on DBGrid Indicator Column


Use:

procedure TForm1.DBGrid1DblClick(Sender: TObject);
var
  P: TPoint;
  C: TGridCoord;
begin
  GetCursorPos(P);
  P := (Sender as TCustomGrid).ScreenToClient(P);
  C := (Sender as TCustomGrid).MouseCoord(P.X, P.Y);
  if C.X = 0 then ...
end;

"Arry Soegiarto Latief" <arry...@magix.com.sg> schreef in bericht
news:8levs8$cle$1@coco.singnet.com.sg...

Quote
> Can anybody let me know which event I should use for Double Click or Click
> in the Indicator Column (the most left column of TDBGRID)?

> Appreciate for your help.

Other Threads