# How to create a data table or grid with dynamic column and row headers

**URL:** <https://community.weweb.io/t/how-to-create-a-data-table-or-grid-with-dynamic-column-and-row-headers/6443>\
**Category:** Ask us anything\
**Created:** [January 17, 2024, 1:01pm UTC](https://community.weweb.io/t/how-to-create-a-data-table-or-grid-with-dynamic-column-and-row-headers/6443 "2024-01-17T13:01:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampannemans](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sampannemans](https://community.weweb.io/u/sampannemans)\
**Post date:** [January 17, 2024, 1:01pm UTC](https://community.weweb.io/t/how-to-create-a-data-table-or-grid-with-dynamic-column-and-row-headers/6443/1 "2024-01-17T13:01:12Z")

</div>

Hello,

I would like to create a data table that would look like this:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/23614b905ebdaefea5fee48603cde7634d32cbe9.png)

So I have months, product types, and amounts.

Two questions:

1. Considering this table has 3 data elements (months, products and amounts), how should my data be structured to ensure I can access the right data elements?

2. How can I create a data table or data grid in WeWeb where I have dynamic columns and rows?

Thanks for your help!
