Setup tempdoc for hidewhens (improved)

Push datagrid handling down into TemporaryDocument