Hi Mohan,
What if you hide the button in your datagrid with css and then use javascript to click it. You can use the javascript snippet to run custom javascript on a page.
https://appstore.home.mendix.com/link/app/43096/Incentro-Business-Acceleration/JavaScript-Snippet