We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Dynamic data structuring with sfDataGrid on android

I am currently evaluating the sfDataGrid control on Android and one of our requirement is that the data structure that we want to display is not known in advance. 

The number of columns (and their caption) is only known at runtime (they come from a server). We don't have a known set of columns variations that could be reflected in a known set of data models...
I tried to use dynamic object like with that WPF  example, and it does not work : http://www.syncfusion.com/blogs/post/Reshape-your-Data.aspx

Is there a way to achieve that with the Xamarin.Android DataGrid?


4 Replies

PK Prasanth Karthikeyan Syncfusion Team January 9, 2016 11:19 AM UTC

Hi Guillaume,

We tried to use dynamic object like the WPF example in the below link as mentioned by you and it works fine from our side.


We have attached the sample in which we tried for your reference and you can download the same from the below location.

Sample link: http://www.syncfusion.com/downloads/support/forum/121617/ze/SampleDemo-1914895060 

In case if the above sample does not meet your expectation, please revert us with the modified sample reproducing the issue so that we can work towards fulfilling your requirement.


YT Yves Tessier January 11, 2016 07:05 PM UTC

Hi Prasanth,

Thanks for your quick answer. 
I am working with Guillaume on this. I just tried the demo code you posted (without any modification other than updating the references to the syncfusion libraries (version 13.3451.0.7), and unfortunately it doesn't work, as you can see on the screenshot.. I suspect there is something with the version of either visual studio, Xamarin or Android that mess things up so I am giving you more details on our setup:
Visual studio Ultimate 2013 Version 12.0.31101.00 Update 4 (visual C# 2013) , NET framework 4.5.51650, Xamarin, Xamarin Android I tried to run the code on a Samsung Galaxy S5 with Android 5.1.1. If you need more details to track down our problem let us know.

Attachment: Screenshot_20160111134024_9ba8969b.zip

GL Guillaume Levasseur January 11, 2016 08:31 PM UTC

Hi Prasanth, 

After trying your sample on three different computers, we realized why it was not working. 

The sample is not working with this version of the Syncfusion dlls: 13.3451.0.7 (available for trial)

it is working with this version: 13.3451.0.18 (community license)

Are you planning to update the dlls available for trial purpose? It would be a good if they are not the latest. 

In the meanwhile, we'll continue evaluating the grid with the community license dlls.

PK Prasanth Karthikeyan Syncfusion Team January 12, 2016 03:05 PM UTC

Hi Guillaume,

Dynamic Binding support in SfDataGrid was provided from our service pack (13.3451.0.18) only and that is why it was not working for you when trying with 13.3451.0.7 dlls. In order to resolve your problem with dynamic object binding, we suggest you to use our latest version of dlls.

Regarding your query “Are you planning to update the dlls available for trial purpose?”, Our last service pack release is available for download under the following link.




Live Chat Icon For mobile
Up arrow icon