M477H13U Posted August 9, 2018 Share Posted August 9, 2018 Hello uniGUI developpers ! (: We would like to know if it could be possible to override the native focus(0,0) of the grid when it is create/refresh ? The aim would be to focus a specific cell (saved in a profil: our logic) when grid is open/refresh instead of the first cell .. How could I achieve somethink like that ? Regards, Link to comment Share on other sites More sharing options...
Sherzod Posted August 10, 2018 Share Posted August 10, 2018 Hello, You can try these actions: 1. UniDBGrid1 -> Options -> dgDontShowSelected = True 2. UniDBGrid1 -> OnAfterLoad event: procedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniDBGrid); begin with UniDBGrid1 do begin CurrRow := 5; CurrCol := 5; end; end; 1 Link to comment Share on other sites More sharing options...
M477H13U Posted August 10, 2018 Author Share Posted August 10, 2018 Thanks for the quick answer; I will try this a bit later! I still have one question: What exactly does dgdontShowSelected ? Is it correlated to dgAlwaysShowSelection ? What is the difference ? Nb: I did not found any detail on this option here http://www.unigui.com/doc/online_help/api/uniGUITypes_TUniDBGridOption.html Regards, Link to comment Share on other sites More sharing options...
M477H13U Posted August 16, 2018 Author Share Posted August 16, 2018 Any answer ? :/ Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 16, 2018 Administrators Share Posted August 16, 2018 When dgDontShowSelected is set, selected Row/Cell will not be shown after data is loaded. Link to comment Share on other sites More sharing options...
M477H13U Posted August 17, 2018 Author Share Posted August 17, 2018 OKay, but what about the difference with dgAlwaysShowSelection ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now