Data grid not working

I am trying to display a list of items (sport bets) with a data grid.
The data is coming from a http call to my Xano API. The answer I get is a list of 10 objects (my bets).
My problem is : when I try to set up the ‘title field’ and ‘content field’ of my data grid, it only propose me to set it up as “response”, “headers”, “statusCode” and not the actual values of my list of bets…

When I try to use “custom value” and use code with “currentItem” or “currentValue” it does not work. e.g “$queries.allBets.data.response[currentItem].name_of_bet”. This gets me the following error : “Cannot read properties of undefined (reading ‘name_of_bet’)”

I find it odd because the result of my Xano http call is similar to the one of the Pokedex projects which displays a nice data grid like I want for my project

Relevant links:

Thank you for your help !

Can you try setting a dynamic value on the data prop to be $queries.allBets.data.response. That should fix you issue.

I do however see that Data grid can be a bit glitchy in that the changes in prop are not immediately reflected on the canvas (we will investigate that), but it should work in Preview mode:

1 Like

Awesome, this works ! Thank you so much for your help