Detecting when a control is losing focus

Hi,

I have a little function I want to call when my grid1 is losing focus. How can I do that ???
sruelAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
tecbuilderConnect With a Mentor Commented:
Use the grid's OnExit event.
0
 
geobulCommented:
Hi,
write an OnExit event like this:

procedure TForm1.DBGrid1Exit(Sender: TObject);
begin
  ShowMessage('grid lost focus');
  // call your function here
end;

Regards, Geo
0
 
sruelAuthor Commented:
God ! It was a really easy one hein ? !!!!
0
All Courses

From novice to tech pro — start learning today.