# \[bp:GridView\] nested grid views

**URL:** <https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280>\
**Category:** Discussion in English\
**Created:** [December 1, 2024, 7:52am UTC](https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280 "2024-12-01T07:52:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [December 1, 2024, 7:52am UTC](https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280/1 "2024-12-01T07:52:59Z")

</div>

Hi!

Does DotVVM support GridView inside another GridView (nested)?  
I can’t find anything about this in the online text/video documentation.

If it is supported, would you be kind to point me at some resources for best approaching parent-child grid views?

---

<div class="post-metadata">

**Author:** ![exyi](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/exyi/32/9_2.png) [@exyi](https://forum.dotvvm.com/u/exyi)\
**Post date:** [December 11, 2024, 8:03pm UTC](https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280/2 "2024-12-11T20:03:27Z")

</div>

Hi! Sorry, I’m not sure what do you exactly mean by nested GridView. Is it displaying a GridView inside the cell of another GridView? I don’t think we want to explicit that, but I guess it might work. But that seems like a very strange usage, so I guess you want to accomplish somethink diferent?

---

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [December 12, 2024, 12:24pm UTC](https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280/3 "2024-12-12T12:24:13Z")

</div>

Yeah, sorry for not making myself clear on the first go.

What we need is to conditionally show a child gridView below any parent gridView row, based on data contained in that parent gridView row.

A random image from www to show what I mean by that:  
 ![](https://forum.dotvvm.com/uploads/default/original/1X/58d440e095b690c14d10d045c45b444a66a76363.png)  
Yes, the child will have the position & width shown in the example picture.

PS: or even better for catching the idea:  
 ![image](https://forum.dotvvm.com/uploads/default/original/1X/1a32f740e5933f9775950d5b51b1e165b2b6da3e.png)

In WebForms we have this implemented by nesting the child inside a TemplateField control:  
 ![image](https://forum.dotvvm.com/uploads/default/original/1X/edae5aceccb69069e387279bc05f095f49fcab03.png)  
And on the client side, by javascript, we move it from its cell inside the parent to its own `<tr><td></td></tr>` below the selected parent row.

---

<div class="post-metadata">

**Author:** ![exyi](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/exyi/32/9_2.png) [@exyi](https://forum.dotvvm.com/u/exyi)\
**Post date:** [December 12, 2024, 1:38pm UTC](https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280/4 "2024-12-12T13:38:06Z")

</div>

Ok thanks, this makes perfect sense. I’m quite sure it would work with the vanilla dot:GridView using the new AddTemplateDecorator ([DotVVM | Released DotVVM 4.3](https://www.dotvvm.com/blog/115/Released-DotVVM-4-3)) in RowDecorators, just as shown in the post. The BP:GridView is more finicky, but I’d at least expect it to work if the nested one is dot:GridView or plain table with Repeater

---

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [December 12, 2024, 1:51pm UTC](https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280/5 "2024-12-12T13:51:16Z")

</div>

Thank you. I’ll return here if analysis materializes into migrating that page towards our DotVVM app.

---

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [October 6, 2025, 6:47am UTC](https://forum.dotvvm.com/t/bp-gridview-nested-grid-views/280/6 "2025-10-06T06:47:11Z")

</div>

I confirm that `bp:GridView` does not work with nested `bp:GridView` inside `<RowDetailTemplate>`. It breaks at runtime in knockout.js

 ![image](https://forum.dotvvm.com/uploads/default/original/1X/46c51d0ac7ef796bc738cad42aa5d17684dcca7b.png)
