Jump to content

How to set focus to the control?


Recommended Posts

Because  TUniDBGrid in this version lost key focus after data refreshing  after grid.refresh and any any any actions, i need to set key focus to grid. How can I do this?


I Try


1. Grids.SetFocus

2. Form.ActiveControl := Grids


No any affects :)


Is who know how set focus to the control in UNIGUI?

Many thanks for help me.



Gurow N V (aka altagur)

Link to comment
Share on other sites

Thanks a lot.


On KeyDown Event i am change query and close and open dataset connected to grid after than  grid lost focus.

I have a tree structure and then push enter i must go to the node and show child nodes like file structure in Norton Commander

I press enter chclose open query and view child nodes but cant move thru grid by arrows because grid lost focus.I try to view any ajax event after refresh grid and Set focus.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...