# Dynamic columns in the table grid rows

**URL:** <https://community.weweb.io/t/dynamic-columns-in-the-table-grid-rows/17740>\
**Category:** How do I?\
**Created:** [April 12, 2025, 4:45pm UTC](https://community.weweb.io/t/dynamic-columns-in-the-table-grid-rows/17740 "2025-04-12T16:45:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomerer2000](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tomerer2000](https://community.weweb.io/u/tomerer2000)\
**Post date:** [April 12, 2025, 4:45pm UTC](https://community.weweb.io/t/dynamic-columns-in-the-table-grid-rows/17740/1 "2025-04-12T16:45:36Z")

</div>

Hey everyone,  
I’m working with very dynamic data, so I don’t know how many cells I will get for each row or how many head columns I’ll have. This is why I’m trying to work with the row’s column attribute.  
The issue is that I don’t understand what type of data I need to bind to the columns attribute.  
For example, this is the type of data needed for the Datagrid columns:  
[  
{  
“headerName”: “Name”,  
“cellDataType”: “text”,  
“field”: “name”,  
“width”: “200px”,  
“sortable”: true  
},  
{  
“headerName”: “Price”,  
“cellDataType”: “number”,  
“field”: “price”,  
“width”: “100px”,  
“sortable”: true  
}]  
I need the same just for the columns in the row elements of the regular table.

\*If someone also knows how to work with the column position I would appreciate some explanation.

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

---

<div class="post-metadata">

**Author:** ![newar](https://avatars.discourse-cdn.com/v4/letter/n/43a26b/32.png) [@newar](https://community.weweb.io/u/newar)\
**Post date:** [April 17, 2025, 9:07pm UTC](https://community.weweb.io/t/dynamic-columns-in-the-table-grid-rows/17740/2 "2025-04-17T21:07:54Z")

</div>

Same question here — this item is missing an example of what the expected answer should be.

---

<div class="post-metadata">

**Author:** ![DanielL](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/daniell/32/13398_2.png) [@DanielL](https://community.weweb.io/u/DanielL)\
**Post date:** [April 18, 2025, 10:24am UTC](https://community.weweb.io/t/dynamic-columns-in-the-table-grid-rows/17740/3 "2025-04-18T10:24:08Z")

</div>

Hi @tomerer2000

The expected binding format for the columns property is [“1fr”, “1fr”].
