erich.wanker Posted November 16, 2022 Share Posted November 16, 2022 Hi - i dont want to clear the bookmarks after reading ... how can i do this? i just read values (without writing or something) UniMainModule.Z_activities.DisableControls; for i := 0 to UniDBGrid1.SelectedRows.Count - 1 do begin UniMainModule.Z_activities.Bookmark:=UniDBGrid1.SelectedRows.Items[i]; SQL_filter_Activities := SQL_filter_Activities +' OR ( `description_activity` LIKE '''+ UniMainModule.Z_activities.FieldByName('activitie_name').asstring+''' ) '; end; ..after this - the unidbgrid lost the bookmarks and the last bookmarked record is focused Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted November 16, 2022 Author Share Posted November 16, 2022 ok .. i think - i have a solution: function keydown(sender, e, eOpts) { if (e.getKey() == e.ENTER) { sender.focus(false, 1); e.stopPropagation(); console.log('ENTER key pressed!'); } } HTH Erich Quote Link to comment Share on other sites More sharing options...
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.