Link to home
Start Free TrialLog in
Avatar of rainbowsoftware
rainbowsoftware

asked on

DBGrid OnTitleClick

I want to write an event handler to telle me which title has been clicked in a DBGrid. What should I write?
Avatar of kretzschmar
kretzschmar
Flag of Germany image

hi rainbowsoftware,

what is with use of the ontitleclick-event from the dbgrid, like

procedure TForm1.DBGrid1TitleClick(Column: TColumn);
begin
  Showmessage('Column with title '+column.Title.Caption+' was clicked '+#10+
              'Associated field is '+column.FieldName);
end;

meikl
Avatar of rainbowsoftware
rainbowsoftware

ASKER

Thanks a lot to meikl.
That's what I wanted.
Joern
i am so later  :(
ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial