Hello,
There is no default export excel button for Datagrid2. You can use export excel module https://marketplace.mendix.com/link/component/726 from marketplace.
Hope it helps!