[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 846
  • Last Modified:

DBGrid OnTitleClick

I want to write an event handler to telle me which title has been clicked in a DBGrid. What should I write?
0
rainbowsoftware
Asked:
rainbowsoftware
  • 2
1 Solution
 
kretzschmarCommented:
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
0
 
rainbowsoftwareAuthor Commented:
Thanks a lot to meikl.
That's what I wanted.
Joern
0
 
men xinCEOCommented:
i am so later  :(
0
 
kretzschmarCommented:
hi joern,

glad to helped you
good luck again

meikl ;-)
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now