Jump to content

Select dbgrid rows.


eduardosuruagy

Recommended Posts

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)

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 3 years later...
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. 

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.

Guest
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...