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

using a list of properties instead of object

Is there anyway to use a list of properties instead of an object to set the properties.

I'm looking for something like 

List<PropertyInformation> Properties

class PropertyInformation 
{
     public string Category {get;set;}
     public string Description {get;set;}
     public string DisplayName {get;set;}
     public object Value {get;set;}
}

so I would have a property like new PropertyInformation { Category = "A", Description = "B", DisplayName ="C", Value =false};

instead of 

class Name 
{
     [Category("A")]
     [DisplayName("C")]
     [Description("B")]
     public bool RandomBool {get;set;}
}

thanks.


1 Reply

PB Priyanga Balasubramaniam Syncfusion Team September 20, 2017 10:31 AM UTC

Hi Eric,

Thank you for using Syncfusion products.

From your update we understood that you try to change the Attribute value at runtime using properties. We could not set Attribute values for properties at run time while define the properties. Due to this reason in current implementation of our PropertyGrid does not provide support to load properties from the collection.

Regards,
Priyanga B

Loader.
Up arrow icon