Hi, I'm loading data on a grid on a Blazor Web Assembly project, getting data from an API, the JSON looks like this
{
"ClientId": 3,
"Name": "DANIEL PEREZ SANCHEZ",
"Branch": {
"BranchId": 1,
"Name": "WEST"
}
}
My grid has the columns to show the Data:
<SfGrid DataSource="@ClientsL" AllowSorting="true" ID="FianzasClientsGrid" AllowTextWrap="true" Toolbar="@(new List<string>() { "Search" })">
<GridEvents CommandClicked="OnCommandClicked" TValue="Client" OnActionBegin="ActionBeginHandler"></GridEvents>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true">
</GridEditSettings>
<GridColumns>
<GridColumn Field=@nameof(Client.ClientId) HeaderText="Client Id" TextAlign="TextAlign.Center" Width="15"></GridColumn>
<GridColumn Field=@nameof(Client.Name) HeaderText="Nombre" TextAlign="TextAlign.Left" Width="55"></GridColumn>
<GridColumn Field=@nameof(Client.Branch.BranchId) HeaderText="Branch Id" TextAlign="TextAlign.Center" Width="15"></GridColumn>
<GridColumn Field=@nameof(Client.Branch.Name) HeaderText="Branch" TextAlign="TextAlign.Center" Width="15"></GridColumn>
The problem is on Branch Name Column the grid shows Client Name, I guess this happens because Client and Branch have the same property name thas is Name, how Can I tell the grid to show not the Client Name but the Branch Name
Thank you very much