# Refresh data in child datagrid

**URL:** <https://forum.radzen.com/t/refresh-data-in-child-datagrid/13855>\
**Category:** Blazor WebAssembly\
**Created:** [April 20, 2023, 6:01pm UTC](https://forum.radzen.com/t/refresh-data-in-child-datagrid/13855 "2023-04-20T18:01:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCosmos](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@SCosmos](https://forum.radzen.com/u/SCosmos)\
**Post date:** [April 20, 2023, 6:01pm UTC](https://forum.radzen.com/t/refresh-data-in-child-datagrid/13855/1 "2023-04-20T18:01:04Z")

</div>

Hi,  
I use blazor wasm net core 6.  
I have parent RadzenDataGrid where I used EditInLine and this main table is expandable.  
I added child table for each Id of the main table.

When I populate in the child table I have to change the page to update the child table. How to update the child table without changing the page?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [April 20, 2023, 6:39pm UTC](https://forum.radzen.com/t/refresh-data-in-child-datagrid/13855/2 "2023-04-20T18:39:43Z")

</div>

Maybe you should check the code generated by some of our Master/Detail CRUD templates for reference.

---

<div class="post-metadata">

**Author:** ![SCosmos](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@SCosmos](https://forum.radzen.com/u/SCosmos)\
**Post date:** [April 21, 2023, 3:33pm UTC](https://forum.radzen.com/t/refresh-data-in-child-datagrid/13855/3 "2023-04-21T15:33:30Z")

</div>

I checked it

I've put OnAfterRenderAsync

```auto
 protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        base.OnAfterRender(firstRender);
 
        if (firstRender)
        {
            await grid.ExpandRow(developers.FirstOrDefault());
        }
    }

```

I obtain this message

```auto
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Value cannot be null. (Parameter 'source')
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.TryGetFirst[SuiviBE](IEnumerable`1 source, Boolean& found)
   at System.Linq.Enumerable.FirstOrDefault[SuiviBE](IEnumerable`1 source)
   at ServiceDT.Client.Pages.Etude.OnAfterRenderAsync(Boolean firstRender) in C:\App\sbd\ServiceDT - Copie\ServiceDT\Client\Pages\Etude.razor:line 248

```

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [April 21, 2023, 3:39pm UTC](https://forum.radzen.com/t/refresh-data-in-child-datagrid/13855/4 "2023-04-21T15:39:05Z")

</div>

The error is self explanatory - developers is null. Please use the debugger to troubleshoot such. cases. There isn't anything Radzen related in that stacktrace.

---

<div class="post-metadata">

**Author:** ![SCosmos](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@SCosmos](https://forum.radzen.com/u/SCosmos)\
**Post date:** [April 21, 2023, 3:52pm UTC](https://forum.radzen.com/t/refresh-data-in-child-datagrid/13855/5 "2023-04-21T15:52:58Z")

</div>

Yes I know if not relatd to Radzen. So I wanted to know if you can give me some advise how I can do that

I have this UI and when I want to added the ActionItemId (click in button A in main table that EditInLine) I have to update RadzenHtmlEditor with button update so the window closes and I have to change the page to see the ActionItemId updated.

 ![image](https://forum.radzen.com/uploads/default/original/2X/5/516ecf26cd52010bc3e746bd12b6b89d9a336b2a.png)
