An event to execute code after the component has become visible?

Here’s another use case which has come up more than once: Grid and preserving selection - #5 by Tatu2