Thank you Vasu that worked. I am also trying to get the columns dynamically and I am trying this to no avail
var index ;
var index = 0;
CMSContext.Current.GlobalObjects.CustomTables[index].ClassShowColumns
Is this even possible in macros expression of a dropdown data source? Its wroking perfectly when I replaced index with 0