# Collapsible row in datagrid

**URL:** <https://community.weweb.io/t/collapsible-row-in-datagrid/20587>\
**Category:** Ask us anything\
**Created:** [January 4, 2026, 7:30pm UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587 "2026-01-04T19:30:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SynopsisLabs](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SynopsisLabs](https://community.weweb.io/u/SynopsisLabs)\
**Post date:** [January 4, 2026, 7:30pm UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587/1 "2026-01-04T19:30:34Z")

</div>

Hi,

I have a data grid that shows shipment information -

Date, Shipment #

It is possible that a shipment can have multiple lines of notes (date, comment) with it.

Is it possible to have expanding rows in a datagrid will show the notes when the row is selected?

14 Jan | ▶ #1243

14 Jan | ▼ #1243  
├─ Date - Shipment processed  
├─ Date - Shipment packed  
└─ Date - Shipment collected

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![Agustin\_Carozo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agustin_carozo/32/13231_2.png) [@Agustin\_Carozo](https://community.weweb.io/u/Agustin_Carozo)\
**Post date:** [January 5, 2026, 2:07pm UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587/2 "2026-01-05T14:07:06Z")

</div>

Hi Steve 👋

That is an interesting challenge.

WeWeb’s native datagrid does not support true “expandable / collapsible” detail rows out of the box.  
​  
However, you can approximate this behaviour by combining a custom column with another component (like a dropdown or conditional container) that reveals the related note lines.

Let me know how it goes!

---

<div class="post-metadata">

**Author:** ![SynopsisLabs](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SynopsisLabs](https://community.weweb.io/u/SynopsisLabs)\
**Post date:** [January 5, 2026, 2:36pm UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587/3 "2026-01-05T14:36:19Z")

</div>

Hi Agustin,

Thanks for the response. I have since realised that what I want to do wouldn’t work as the data for the rolled-up rows will be coming from another collection. Believe that I will have to use a modal instead.

Thanks

---

<div class="post-metadata">

**Author:** ![Toby007](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Toby007](https://community.weweb.io/u/Toby007)\
**Post date:** [January 5, 2026, 5:02pm UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587/4 "2026-01-05T17:02:49Z")

</div>

You could also fake it, aka have the data present, but only show it once the user clicks on this row and sets a variable… this should work in principle.

---

<div class="post-metadata">

**Author:** ![SynopsisLabs](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SynopsisLabs](https://community.weweb.io/u/SynopsisLabs)\
**Post date:** [January 5, 2026, 5:22pm UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587/5 "2026-01-05T17:22:10Z")

</div>

Hi Toby,

Could you explain this approach a bit more?

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![Ryan\_McGonagle](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@Ryan\_McGonagle](https://community.weweb.io/u/Ryan_McGonagle)\
**Post date:** [January 6, 2026, 11:28am UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587/6 "2026-01-06T11:28:35Z")

</div>

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

Instead of using the datagrid use the table component. Within the collection list on the table you bind your data which should be grouped. You would add another container within the rows and another list within the container that is binded to a variable that on click would show the data. Pretty simple if your data is all grouped correctly.

If you wanted to use the datagrid maybe on click you could have a popup that would show further details, that would be the easiest setup.

---

<div class="post-metadata">

**Author:** ![SynopsisLabs](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SynopsisLabs](https://community.weweb.io/u/SynopsisLabs)\
**Post date:** [January 6, 2026, 12:44pm UTC](https://community.weweb.io/t/collapsible-row-in-datagrid/20587/7 "2026-01-06T12:44:28Z")

</div>

Hi,

Thanks for the explanation. I believe that I will go with a popup.

Steve
