CS0411 The type arguments for method 'TypeInference.CreateSfGrid_0<TValue>(RenderT

Does anyone have any tips how to trouble shoot this error. Very new to coding and not sure how to specify the type argument for the Grid Control.

Error CS0411 The type arguments for method 'TypeInference.CreateSfGrid_0<TValue>(RenderTreeBuilder, int, int, IEnumerable<TValue>, int, bool, int, bool, int, bool, int, object, int, RenderFragment)' cannot be inferred from the usage. Try specifying the type arguments explicitly. 



3 Replies

VN Vignesh Natarajan Syncfusion Team July 13, 2021 04:48 AM UTC

Hi Jeremy,  
 
Thanks for contacting Syncfusion support.  
 
Query: “Does anyone have any tips how to trouble shoot this error. Very new to coding and not sure how to specify the type argument for the Grid Control. 
 
We have analyzed your query issue and it has occurred when creating a Grid component. The reported issue might have occurred due to wrong definition of Grid properties. So we need some more details about the issue you are facing. So kindly share the following details.  
 
  1. Share the entire Grid code example.
  2. Share the full screenshot of the issue you are facing.
  3. Share the Syncfusion.Blazor NuGet package version details.
  4. Share the details about the Grid datasource.
  5. Also ensure that you have defined the Grid component with either Datasource property or TValue property of Grid.
 
Above requested details will be very helpful for us to validate the reported query at our end and provide solution as early as possible.  
 
Regards, 
Vignesh Natarajan 



JM Jeremy Myhan July 14, 2021 09:45 AM UTC

Thank you, the datasource property was incorrect and now it’s working. Thank you for the checklist.



VN Vignesh Natarajan Syncfusion Team July 14, 2021 10:38 AM UTC

Hi Jeremy,  

Thanks for the update.  

We are glad to hear that you have resolved your query. 

Kindly get back to us if you have further queries. 

Regards, 
Vignesh Natarajan  


Loader.
Up arrow icon