Exception when editing collection in PropertyGrid


T

Terry

I have a custom collection type that I'm trying to edit in the PropertyGrid
control. I've followed the model in the article written at
http://www.codeproject.com/cs/miscctrl/customizingcollectiondata.asp .

The problem I'm having is when I edit the collection (by clicking the "..."
button) in the collection editor I get a "Index was outside the bounds of
the array" error when trying to commit the changes. However, this only
happens if the collection is expanded in the PropertyGrid. If the
collection is NOT expanded I do not get the error.

I've seen a workaround which basically forces the tree to collapse when
editing the collection, but I'm not real happy with that solution. Is there
a proper way to handle collection editing in the property grid?

Thanks!
Terry
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top