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.
Unfortunately, activation email could not send to your email. Please try again.

Display array of objects in PropertyGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

124091 May 16,2016 02:44 AM May 18,2016 04:27 AM WPF 3
loading
Tags: PropertyGrid
Mers Tho
Asked On May 16, 2016 02:44 AM

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 


Sugapriya Mariappan [Syncfusion]
Replied On May 17, 2016 04:26 AM

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


Mers Tho
Replied On May 17, 2016 05:52 AM

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

Sugapriya Mariappan [Syncfusion]
Replied On May 18, 2016 04:27 AM

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
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;