I have a SfDataGrid in my page and when I try to set the ItemsSource to an ObservableCollection from the C# code behind it throws that exception with a stacktrace of this:
at System.Reflection.RuntimeReflectionExtensions.CheckAndThrow(MethodInfo m)
at System.Reflection.RuntimeReflectionExtensions.GetRuntimeBaseDefinition(MethodInfo method)
at Syncfusion.Data.PropertyAccessor.InitializeGet(PropertyInfo propertyInfo)
at Syncfusion.Data.PropertyAccessor..ctor(PropertyInfo propertyInfo)
at Syncfusion.Data.ItemPropertiesProvider..ctor(ICollectionViewAdv view)
at Syncfusion.UI.Xaml.Grid.GridItemPropertiesProvider..ctor(ICollectionViewAdv view, SfDataGrid _dataGrid)
at Syncfusion.UI.Xaml.Grid.GridQueryableCollectionViewWrapper.CreateItemPropertiesProvider()
at Syncfusion.Data.CollectionViewAdv.SetItemProperties(IEnumerable dataSource)
at Syncfusion.Data.CollectionViewAdv.InitiateCollectionViewAdv()
at Syncfusion.Data.CollectionViewAdv..ctor(IEnumerable _source)
at Syncfusion.Data.QueryableCollectionView..ctor(IEnumerable source)
at Syncfusion.UI.Xaml.Grid.GridQueryableCollectionViewWrapper..ctor(IEnumerable source, SfDataGrid grid)
at Syncfusion.UI.Xaml.Grid.SfDataGrid.CreateCollectionViewAdv(IEnumerable source, SfDataGrid dataGrid)
at Syncfusion.UI.Xaml.Grid.SfDataGrid.SetSourceList(Object itemsSource)
at Syncfusion.UI.Xaml.Grid.SfDataGrid.OnItemsSourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
at Syncfusion.UI.Xaml.Grid.GridPropertyMetadata.OnDependencyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Syncfusion.UI.Xaml.Grid.GridPropertyMetadata.OnInternalDependencyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Windows.UI.Xaml.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Syncfusion.UI.Xaml.Grid.SfDataGrid.set_ItemsSource(Object value)
at Documentation.Pages.Patients.LoadPage()
at Documentation.Pages.Patients.<CommandsRequested>b__1()
at Documentation.Controls.SettingsFlyouts.MainViewSettings.cbsfg_Checked(Object sender, RoutedEventArgs e)
Any help is appreciated.