eduardosuruagy Posted September 16, 2019 Share Posted September 16, 2019 Is there a way to select dbgrid lines without unchecking what is already selected? Note that on the grid when I click on any line the lines that were already marked are unmarked. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 16, 2019 Share Posted September 16, 2019 2 hours ago, eduardosuruagy said: Is there a way to select dbgrid lines without unchecking what is already selected? Note that on the grid when I click on any line the lines that were already marked are unmarked. Use Ctrl/Shift to select multiple records (Ctrl-A to select all) Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 16, 2019 Author Share Posted September 16, 2019 5 minutes ago, Sherzod said: Use Ctrl / Shift para selecionar vários registros (Ctrl-A para selecionar todos) I guess I couldn't explain well, what happens is that when I mark 1 or more records and then click on any dbgrid row all marked records are automatically unmarked, I didn't want them to be unmarked, it has... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 16, 2019 Share Posted September 16, 2019 7 minutes ago, eduardosuruagy said: I guess I couldn't explain well, what happens is that when I mark 1 or more records and then click on any dbgrid row all marked records are automatically unmarked Well this is by design. 8 minutes ago, eduardosuruagy said: I didn't want them to be unmarked For this, you must set the option: UniDBGrid.Options -> dgCheckSelectCheckOnly=True Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 16, 2019 Author Share Posted September 16, 2019 5 minutes ago, Sherzod said: Bem, isso é por design. Para isso, você deve definir a opção: UniDBGrid.Options -> dgCheckSelectCheckOnly = True That's right, thank you very much !! Quote Link to comment Share on other sites More sharing options...
mazluta Posted October 5, 2022 Share Posted October 5, 2022 but then, the dataset afterscroll not fire if record not selected. the user select the first 2 record. why to punish him and clear the selection? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2022 Share Posted October 6, 2022 4 hours ago, mazluta said: but then, the dataset afterscroll not fire if record not selected. the user select the first 2 record. why to punish him and clear the selection? Hello, Can you please explain in more detail? Make a simple testcase if possible. 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.