Event that triggers when switching views?

Custom code condition on the row rule is what you would have wanted to use then.