BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<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.
I resolved this myself. Bootstrap uses the component GridColumn. I changed the gridcolumn to be absolute.
<SfGrid DataSource="@InventorySelected">
<GridColumns>
<Syncfusion.Blazor.Grids.GridColumn Field="@nameof(T_IFS_InventoryDTO.SerialNumber)" //line 11
HeaderText="Serial Number"> // line 12
</Syncfusion.Blazor.Grids.GridColumn>
</GridColumns>
</SfGrid>
Hi Steve,
Thank you for the update. The solution shared will be very useful.
We are marking this forum ticket as solved.
Regards,
Suganya Gopinath.