79679697

Date: 2025-06-25 21:41:51
Score: 0.5
Natty:
Report link

The relevant section of code should be modified as follows:

<MudDataGrid Class="table" Items="context.Vendors"  >
    <Columns>
        <MudBlazor.PropertyColumn Property="@(vendor => vendor.Name)" />
        <MudBlazor.PropertyColumn Property="@(vendor => vendor.Description)" />
        <MudBlazor.TemplateColumn Title="Action" Context="vendor">
            <CellTemplate>
                <MudLink Href="@($"vendors/edit?id={vendor.Item.Id}")">Edit</MudLink>
            </CellTemplate>
        </MudBlazor.TemplateColumn>
    </Columns>
</MudDataGrid>

My chief errors were not using CellTemplate, and not understanding .Item.*
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tonyatl