Jump to content

DBGrid.SelectionChange


LogSistemas01

Recommended Posts

Hello,

I have the following scenario:

A list of financial documents for the customer to select some.

With each selection, I take the PK from the document and put it in a list inside a controller.
This object is loaded from the database and the total of the selected list is presented to the user on the screen.

The problem occurs when an item in the grid is cleared.

After deselecting, the SelectionChange event is invoked, however, when it arrives at that event, the item selected in the grid is no longer the unchecked item, but the first item selected, in case there is still another item selected.

That way I can no longer get the PK of the unmarked item.

What can I do in this case to get the PK by deselecting?

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