One can always use the popular Code Snippets WordPress plugin to run any PHP code using shortcode. So the PHP code runs if it's a plugin, so to speak, it is in fact not a true WP integrated solution but a standalone script unless one can add WP REST API to the C_Datagrid class (cls_datagrid.php).
An alternative, not surprisingly, is to use the old fashioned iframe.