Returns currently selected row and active item.
Use this function to retrieve the currently selected row.