<SfGrid DataSource="@InventorySelected">
<GridColumns>
<GridColumn Field="@nameof(T_IFS_InventoryDTO.SerialNumber)" //line 11
HeaderText="Serial Number"> // line 12
</GridColumn>
</GridColumns>
</SfGrid>
// This is initialized\ with data:
private IEnumerable<T_IFS_InventoryDTO> InventorySelected { get; set; } = new List<T_IFS_InventoryDTO>();
// And the model:
public class T_IFS_InventoryDTO
{
public int InventoryID { get; set; }
[MaxLength(50)]
public string SerialNumber { get; set; }
public DateTime ScanDate { get; set; }
public int CategoryID { get; set; }
//public T_IFS_CategoryDTO T_IFS_CategoryDTO { get; set; }
public int BrandID { get; set; }
//public T_IFS_BrandDTO T_IFS_BrandDTO { get; set; }
public int ModelID { get; set; }
//public T_IFS_ModelDTO T_IFS_ModelDTO { get; set; }
public int EmployeeID { get; set; }
//public T_IFS_EmployeeDTO T_IFS_EmployeeDTO { get; set; }
public int StatusID { get; set; }
//public T_IFS_StatusDTO T_IFS_StatusDTO { get; set; }
public DateTime DateStatus { get; set; }
public int EmployeeStatusID { get; set; }
[MaxLength(50)]
public string? Creator { get; set; }
public DateTime DateCreated { get; set; }
[MaxLength(50)]
public string? Modifier { get; set; }
public DateTime? DateModified { get; set; }
[Column(TypeName = "text")]
public string? Notes { get; set; }
public int CurrentLocationID { get; set; }
public string ErrorMessage { get; set; }
//public T_IFS_LocationDTO T_IFS_LocationDTO { get; set; }
public bool IsSelected { get; set; }
I am posting the errors in a picture attament.
Attachment:
Syncfusion_e8c5a5c7.zip