RadPropertyGrid and MVVM

1 posts, 0 answers
  1. centuit
    centuit avatar
    6 posts
    Member since:
    Aug 2011

    Posted 05 Apr 2012 Link to this post


    I have a project that involves using a PropertyGrid in a MVVM model. I have searched and could not find an example.
    I need to change PropertyDefinitions dynamically at runtime, meaning bind to a list of definitions at runtime.

    Example: (This code does not work, how can I make it work ?)

    // class that holds each definition
     public class MyProperties
            public string DisplayName { get; set; }
            public string GroupName { get; set; }
            public string Description { get; set; }
            public object Value { get; set; }

      public class MainViewModel
    // property that is bound to the "Item" property in RadPropetyGrid control
            public object CurrProperties { get; set; }

            public MainViewModel()
    var list = new List<MyProperties>();
                list.Add( new MyProperties
                        DisplayName = "String Property",
                        GroupName = "MyGroup",
                        Description = "This is a test for a string property",
                        Value = "My String Value"


    CurrProperties = list;

Back to Top