issue #23796 private extension tweak

Some extensions generate a slightly different component hierarchy. Therefore make fewer assumptions about the relationship between the export button (event originator) and the gridbox itself.