D
deleria010
I have a class that I use a PropertyGrid to edit properties in. I have
one property in the class that is an ArrayList. The PropertyGrid
understands the ArrayList(displays Collection on the righthand side)
and lets me edit it(click on the '...' button and an object collection
editor window opens up).
When I try to edit the objects in the list using the collection editor
window, I can't because their properties and the values of the
properties on the righthand side are 'grayed out'. I can add and
remove items but I can't change the value of the items I add because
the properties are 'grayed out'. I want to be able to edit not only
the ArrayList but each item's value in the list. Is there anyway to do
this?
Here is the code that describes the property for the ArrayList:
[CategoryAttribute("Camera Settings"),
DescriptionAttribute("A list of exposure times in ms")]
public ArrayList ExposureTimes
{
get
{
return this.exposureTimes;
}
set
{
this.exposureTimes = value;
}
}
Thanks for your time,
Kristin
one property in the class that is an ArrayList. The PropertyGrid
understands the ArrayList(displays Collection on the righthand side)
and lets me edit it(click on the '...' button and an object collection
editor window opens up).
When I try to edit the objects in the list using the collection editor
window, I can't because their properties and the values of the
properties on the righthand side are 'grayed out'. I can add and
remove items but I can't change the value of the items I add because
the properties are 'grayed out'. I want to be able to edit not only
the ArrayList but each item's value in the list. Is there anyway to do
this?
Here is the code that describes the property for the ArrayList:
[CategoryAttribute("Camera Settings"),
DescriptionAttribute("A list of exposure times in ms")]
public ArrayList ExposureTimes
{
get
{
return this.exposureTimes;
}
set
{
this.exposureTimes = value;
}
}
Thanks for your time,
Kristin