Good afternoon. Using a class DynamicDictionary as ItemsSource. public class DynamicDictionary: DynamicObject { Dictionary <string, object> dictionary = New Dictionary <string, object> (); public override bool TryGetMember ( GetMemberBinder binder, out object result) { string name = binder.Name.ToLower (); return dictionary.TryGetValue (name, out result); } public override bool TrySetMember ( SetMemberBinder binder, object value) { dictionary [binder.Name.ToLower ()] = value; return true; } public override IEnumerable <string> GetDynamicMemberNames () { return dictionary.Keys; } } DynamicDictionary use as follows: List <DynamicDictionary> rows = new List <DynamicDictionary> (); dynamic row = new DynamicDictionary (); row.customer = "Customer1"; row.Period = "2008"; row.Item = "Item1"; row.Cost = "20"; rows.Add (row); xamGrid.ItemsSource = rows Can I use DynamicDictionary as ItemsSource??? Thank you for your reply.
Hello Sergey,
Thank you for your post. I have been looking into it and I suggest you see this forum thread:
http://forums.infragistics.com/forums/p/54047/279292.aspx
where a similar issue like yours is discussed.
Hope this helps you.