I have a solution where the data models are all in a separate shared project.
I have added an SfGrid to an existing Razor page, as shown below. In my razor.cs file, both the grid and that datasource are using the same type (from the shared project). Although the project runs and displays the data correctly, I would like to know how to get rid of the following error?
"CS0029 Cannot implicitly convert type 'Microsoft.AspNetCore.Components.ElementReference' to 'Syncfusion.Blazor.Grids.SfGrid'"
Razor File
Razor.cs File
private SfGrid RideGrid;
protected IEnumerable AllRidersWithDistance { get; set; } = new List();