I found the reason why you can not edit,
because each value in a list is an object
you can not edit it,
even though I put in GetValue
one value from the object.
I opened the object in a list in expander and edited there.
Question
I have a list in the PropertyGrid
, and an array.
When the array opened in expander (+
) can edit it,
but when the list opens in expander can not edit it.
What is the difference between them?
I saw this question:
Modify default behaviour of PropertyGrid and TypeConverterAttribute
that in order to prevent editing by the expander is turned array to a list.
Why in the array can to edit, and the list can not be edited?
How can I change this? (Or can not be ?)
Solution
I found the reason why you can not edit,
because each value in a list is an object
you can not edit it,
even though I put in GetValue
one value from the object.
I opened the object in a list in expander and edited there.
OTHER TIPS
AS my suggestion it is better to use List because List is auto implemented array list which the size is flexible compare to array we need to assign it. Find out more in http://www.dotnetperls.com/list