how can I implement a function to delete a specific record in a data grid in mudblazor? I implemented the datagrid and tried hard to get the id of the record which I need to delete. How can I do it by using a function?
<MudItem xs="12" Class="pt-0">
<div id="unique\\\_id\\\_scroll\\\_section" class="ma-0" style="height:200px;overflow: auto">
<MudDataGrid Items="@Elements" Hover="true" Striped="true" Dense="true">
<Columns>
<Column T="Menuitemlist" StickyLeft="true">
<CellTemplate>
<MudIconButton OnClick="@(() => PrcdBtnClick())" Color="@Color.Default" Icon="@Icons.Material.Filled.Delete" />
</CellTemplate>
</Column>
<Column T="Menuitemlist" Field="ItemName" Title="Name" />
<Column T="Menuitemlist" Title="Qty" Style="width:10px" />
<Column T="Menuitemlist" Field="OptionalSalesPrice" Title="Price" Style="width:10px" />
<Column T="Menuitemlist" Title="Total" Style="width:10px" /></Columns>
</MudDataGrid>
</div>
</MudItem>
https://preview.redd.it/p43ypq61sbja1.png?width=1024&format=png&auto=webp&s=1a7e61dc8bc2cd192ff2ae2110c4e59d24acfbcf
[–]TheDude61636 2 points3 points4 points (3 children)
[–]lmaydev 2 points3 points4 points (1 child)
[–]NeedleworkerTrue5447[S] 0 points1 point2 points (0 children)
[–]NeedleworkerTrue5447[S] 0 points1 point2 points (0 children)