How do I keep track of last selectedItem in datagrid?

Printable View