@page "/"
@using SfGridColTemplateIssue.Shared
@using Syncfusion.Blazor.Grids

<SfGrid TValue="Contact" DataSource="@contacts">
    <GridColumns>
        <GridColumn>
            <Template>
                <h3>Hello World </h3>
            </Template>
        </GridColumn>
        <TestColumn/>
        <GridColumn Field="@nameof(Contact.Id)" IsPrimaryKey="true"/>
        <GridColumn Field="@nameof(Contact.Name)"/>
        <GridColumn Field="@nameof(Contact.Email)"/>
        <GridColumn Field="@nameof(Contact.City)"/>
        <GridColumn Field="@nameof(Contact.Country)"/>
    </GridColumns>
</SfGrid>


@code{

    ICollection<Contact> contacts = new List<Contact>();
    protected override Task OnInitializedAsync()
    {
        contacts =
        [
            new Contact() { Name = "John", Email = "John@gmail.com", City = "Aachen", Country = "Germany" },
            new Contact() { Name = "Doe", Email = "Doe@gmx.com", City = "Berlin", Country = "Germany" },
            new Contact() { Name = "Jane", Email = "Jane@sf.com", City = "Munich", Country = "Germany" },
        ];
        
        return base.OnInitializedAsync();
    }

}