Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to Databind to a "Dynamic" object ?

$
0
0

I am currently using DevExpress grid and want to data-bind the grid to a Dynamic object that does not have properties. I have to assign an object to the ItemsSource property and I am not sure how to achieve what I am trying to do.

Instead it has a dictionary of Key and Values. Example :

Dictionary<string, object>() dict = new...;
dict.Add("Name", "John");
dict.Add("Age", 36);

I would usually think there is an Interface / Abstract class I can implement as a provider for the data binding, such has GetProperties, GetValue(property) and SetValue(property, value) kind of setup.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>