<SfGrid DataSource="@p" AllowPaging="true" Toolbar="@(new List<string>() { "Print" })">
<GridColumns>
<GridColumn Field=@nameof(p.AIPDataModel.PPA) HeaderText="PPA" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(p.AIPDataModel.Barangay) HeaderText="Barangay" Width="150"></GridColumn>
<GridColumn Field=@nameof(p.AIPDataModel.Municipality) HeaderText="Municipality" Format="d" Type="ColumnType.Date" TextAlign="TextAlign.Right" Width="130"></GridColumn>
<GridColumn Field=@nameof(p.AIPDataModel.ImplementingOfficeOrAgency) HeaderText="Implementing Office/Agency" Format="C2" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(p.AIPDataModel.ImplementingYear) HeaderText="Implementing Year" Width="150"></GridColumn>
</GridColumns>
</SfGrid>
and i have this error :
Error CS0411 The type arguments for method 'TypeInference.CreateSfGrid_8<TValue>(RenderTreeBuilder, int, int, IEnumerable<TValue>, int, bool, int, object, int, RenderFragment)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
Attachment:
Screenshot_20210520_020907_d58eafb3.rar