ArgumentNullException: Value cannot be null

21.2.8 version


Getting this error

ArgumentNullException: Value cannot be null. (Parameter 'source')

  • System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)

  • System.Linq.Enumerable.Any<TSource>(IEnumerable<TSource> source, Func<TSource, bool> predicate)

  • Syncfusion.Blazor.Grids.Internal.GridHeader<TContent>.OnParametersSet()

  • Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()


<SfGrid ID="Agreement" DataSource="@GridData" AllowPaging="true">

    <GridPageSettings PageSize="10"></GridPageSettings>

    <GridColumn Field=@nameof(WebSearchResultDto.Id) HeaderText="ID" IsPrimaryKey="true"></GridColumn>

    @*

     <GridColumn Field=@nameof(WebSearchResult.Name)></GridColumn>

    <GridColumn Field=@nameof(WebSearchResult.Snippet)></GridColumn>

    <GridColumn Field=@nameof(WebSearchResult.DisplayUrl)></GridColumn>*@

</SfGrid>


1 Reply

PS Prathap Senthil Syncfusion Team July 26, 2023 09:36 AM UTC

Hi Barry,

Before proceeding with your reported issue, we require some additional clarification from your end. Please share the below details to proceed further at our end.

  1. Share with us a grid code snippet with the model class.
  2. Please provide us with a simple, reproducible sample of the issue.
  3. If possible, kindly share your attempt to replicate the issue using the attached simple sample.

Above-requested details will be very helpful in validating the reported query at our end and providing a solution as early as possible.

Sample Link: https://blazorplayground.syncfusion.com/embed/LZhqjGrxVcPRVdrV?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5


Regards,
Prathap S


Loader.
Up arrow icon