Collection Editor


A

alexey.raga

Hello Everyone!

I have to edit collections in my application and I would like to reuse
"in box" collection editor which you can see when you edit a collection
in PropertyGrid.

In fact, I have to show this designer from my own code, not from any
PropertyGrid.

Does anybody know how to do it?
I even tried to create a designer host like:

string[] arr = new string[] { "1", "2", "3" };
DesignSurface ds = new DesignSurface();
ds.BeginLoad(typeof(Form));

ArrayEditor editor = new ArrayEditor(arr.GetType());
editor.EditValue(ds, arr);

but without any result.

Or has anybody got a workaround to edit collections in own
applications?

Thank you.
 
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