DataGrid repeats rows with same values

I have a problem with the RadzenDataGrid component.

I have working code which gets values from my database and puts it in an array. I have tried to display an array value inside a in a but multiple rows with the same value are created.
I should also mention that I have specified the Data attribute in and have set TItem to object (as I have an array of type object). TItem inside the is also set to object as well.
What I have also noticed is that when I set Property inside one to anything other than an empty string, all array values are displayed in seperate rows in that column.

Thanks in advance!

Hey @GoogleUser247-1,

Unfortunately I didn't quite understand what you are trying to accomplish. Please refer to our forum FAQ for details how to improve your post.

Hey @GoogleUser247-1,

Unfortunately I didn't quite understand what you are trying to accomplish. Please refer to our forum FAQ for details how to improve your post.

I have found my problem. I didn't realise that DataGrid works almost the same way as in WPF!
Anyways, I have a new problem:
I have a self-referencing datagrid which is expandable, but when I expand a row, I can't collapse it anymore.

Here is the Datagrid:

   <RadzenDataGrid Data="@mappings" AllowVirtualization="true"
                          RowRender="RowRender" LoadChildData="LoadChildData"  TItem="Mapping" ExpandMode="DataGridExpandMode.Single" Style="margin-top:8vh; margin-left: 10vw;">
                          <Columns>
                              <RadzenDataGridColumn Width="150px" TItem="Mapping" Property="Operator" Title="Operator"></RadzenDataGridColumn>
                              <RadzenDataGridColumn Width="200px" TItem="Mapping" Property="Route" Title="Route"></RadzenDataGridColumn>
                              <RadzenDataGridColumn Width="100px" TItem="Mapping" Property="Handler" Title="Handler"></RadzenDataGridColumn>
                              <RadzenDataGridColumn Width="100px" TItem="Mapping" Property="Timezone" Title="Timezone"></RadzenDataGridColumn>
                              <RadzenDataGridColumn Width="50px"  TItem="Mapping" Property="Inherited" Title="Inherited"></RadzenDataGridColumn>
                              <RadzenDataGridColumn Width="50px"  TItem="Mapping" Property="Options" Title="Options">
                                  <Template Context="data">   
                                      @if (data.Operator == null)
                                      {
                                           <RadzenButton Icon="edit_square"></RadzenButton>
                                           <RadzenButton Icon="delete"></RadzenButton>
                                      }
                                      else
                                      {
                                           <RadzenButton Icon="note_add"></RadzenButton>
                                      }
                                     
                                  </Template>
                              </RadzenDataGridColumn>
                          </Column>
</RadzenDataGrid>

And the C# code:

    void RowRender(RowRenderEventArgs<Mapping> args)
    {
        args.Expandable = args.Data.people.Count != 0 ? true : false;
    }
   
    void LoadChildData(DataGridLoadChildDataEventArgs<Mapping> args)
    {
        args.Data = args.Item.people.Select(e => (Mapping)e).ToList();
    }