Display datatable in Data Grid Dynamically

Hi ,

I would like to display a different datatables to the data grid dynamically ( its depends on the value of the drop down menu).
I did the same with a string, used advanced logic → Custom Action Javascript :
value=(data.VariableName);
How can i pass the datatable value ( i have already set it to the collection as input value ) and changed depends on the value of the drop down menu?

Thank you

Thank you