Multiple Components use the tag 'GridColumn' ...

<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

2 Replies 1 reply marked as answer

ST Steve December 6, 2022 03:05 PM UTC

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>


Marked as answer

SG Suganya Gopinath Syncfusion Team December 7, 2022 12:27 PM UTC

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. 


Loader.
Up arrow icon