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

Display array of objects in PropertyGrid

Hi. I have an array of class, I type PropertyGrid1.selectedobject = configuration[1];

if I do in this way, nothing is shown in the propertyGrid,

So, how can I display array in PropertyGrid? 

Thanks in advance 


3 Replies

SM Sugapriya Mariappan Syncfusion Team May 17, 2016 08:26 AM UTC

Hi Tho jun,

Thank you for contacting Syncfusion Support.

“Query #: how can I display array in PropertyGrid?”

Property grid control doesn’t have support to display array. So we suggest you to use CollectionObject which contains Key Value Pairs as Properties in the PropertyGrid to display array.

Please download the sample from the below link
Sample link: PropertyGridSample

If your requirement is different from the above sample, please provide more information about your requirement

Regards,
M.Sugapriya



MT Mers Tho May 17, 2016 09:52 AM UTC

Thank you for answering, but why there is a property named "key" is displayed in propertygrid? how can I remove it?


SM Sugapriya Mariappan Syncfusion Team May 18, 2016 08:27 AM UTC

Hi Tho Jun, 

Sorry for the inconvenience caused 

We have modified our last update sample. In this we have bound the first item from the Collection to the Selected Object. Now the Property names and values are displaying accordingly. 

Please download the sample from the below link
Sample:PropertyGridSample
 
  
Regards,
M.Sugapriya
 


Loader.
Live Chat Icon For mobile
Up arrow icon