The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
JAJayaraman Ayyanar Syncfusion Team March 22, 2018 10:53 AM UTC
Hi Moshab,
Thanks for contacting Syncfusion support.
We have checked you query. The query for the “Populate DataGrid with dynamic colums” can be achieved by using the following steps.
JSON data cannot be bound directly to SfDataGrid. To bind SfDataGrid with JSON data, we must deserialize the JSON data to a bindable format. You can use the open source NuGet Newtonsoft.Json to serialize and deserialize JSON objects.
Xamarin.Forms have limitations in loading dynamic object (Expando object). Hence dynamic objects can be loaded only using dictionary collection. Refer the dynamic limitations for more details.
JSON data can be parsed into a dictionary collection using JsonConvert.DeserializeObject<List<Dictionary<string, object>>>(json_object).
You can then convert the list of dictionary objects to an observable collection if your data source need to respond to collection changes.
The List of Dictionary objects or the converted ObservableCollection can now be binded as ItemsSource of SfDataGrid.
We have also prepared a sample for your requirement and You can download the same from the below link: