Page will not load with SfGrid

I have a brand new project in Visual Studio 2019 Preview and it will not run any pages with the SFGrid componet is added. If I add this code to a page it stops working with the error inclused in the attached file..

I have added all the required scripts and imports.


Code file attached.

Attachment: codezipped_43fff791.zip

1 Reply 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team September 21, 2020 11:39 AM UTC

Hi Paul, 

Greetings from Syncfusion support. 

We suggest you to ensure to use proper column codes for Grid to overcome the problem you are facing. Please refer the below codes and ensure to add below highlighted GridColumns component as a parent for GridColumn, 

 
<SfGrid Width="750" TValue="Person" DataSource="@people"> 
    <GridColumns> 
        <GridColumn Field="@nameof(Person.Name)"></GridColumn> 
    </GridColumns> 
</SfGrid> 



Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Marked as answer
Loader.
Up arrow icon