See the link above… the code in the “The Basics of Building Layouts” section
A grid layout IS a table (rows and columns). So in this case lets say we load the view, do the callback to get the data, then loop through the results to generate our columns and rows on the fly, then maybe have a StackLayout somewhere on the page to plop the grid into and do like
<StackLayout id="placeholder" />
var stack = page.getViewById("placeholder");
var myGrid = myGenerateGridFunction();
Tables look pretty crappy on a phone though, you SURE that’s where you want to go?