I have two data grids: Grid 1 and Grid 2.
- When I select a record in Grid 1, a corresponding record is created and displayed in Grid 2.
- However, when I deselect a record in Grid 1, and then call grid1.getSelectedItems(), the deselected item is still present in the returned collection.
How can I retrieve only the records that are currently selected?
Code:
When i select first record
Then i deselect firt record, and select second record: