M477H13U Posted August 9, 2018 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, Quote
Sherzod Posted August 10, 2018 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 Quote
M477H13U Posted August 10, 2018 Author 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, Quote
Administrators Farshad Mohajeri Posted August 16, 2018 Administrators Posted August 16, 2018 When dgDontShowSelected is set, selected Row/Cell will not be shown after data is loaded. Quote
M477H13U Posted August 17, 2018 Author Posted August 17, 2018 OKay, but what about the difference with dgAlwaysShowSelection ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.