Category / Section
How to resolve SfDataGrid not rendering issue in iOS and UWP?
1 min read
Xamarin does not load the renderer assemblies, by default, in iOS and UWP projects. Hence, to solve this, you need to manually load it by calling the Init method of SfDataGridRenderer class in the respective projects as mentioned below.
iOS Project
Call SfDataGridRenderer.Init() method in the FinishedLaunching overridden method of the AppDelegate class after the Xamarin.Forms Framework initialization and before the LoadApplication is called, as demonstrated in the following code example:
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Xamarin.Forms.Forms.Init(); ... Syncfusion.SfDataGrid.XForms.iOS.SfDataGridRenderer.Init(); ... LoadApplication(new App()); return base.FinishedLaunching(app, options); }
UWP Project
Call the SfDataGridRenderer.Init() in the MainPage constructor before the LoadApplication is called, as demonstrated in the following code example:
public MainPage() { ... Syncfusion.SfDataGrid.XForms.UWP.SfDataGridRenderer.Init(); ... LoadApplication(new App()); }