Is the user watching the master or detail part of a datagrid?

Hi! If I hava a master-detail relation in a datagrid, how can I know which part the user is currently watching? Is it the master och detail part? I want to do different things depending on which part the user is watching. Thanks! /Therese

Loader.
Up arrow icon