This is a migrated thread and some comments may be shown as answers.

Binding to a collection

1 Answer 91 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Mats
Top achievements
Rank 2
Mats asked on 28 Jan 2013, 03:41 PM
Trying to bind to a collection of objects that encapsulate parameters:
public Parameter
{
    string Name;
    object Value;
}
these are read dynamically at runtime, and each parameter could be of a different type. The collection (array) is then contained in another class.
If i bind to an instance of the 'parent' class the parameter collection shows up via the colleciton editor ui, however, the values are not updated on edit.
Since we are not really interested in the parent object, I have tried binding to the collection directly, but then the only properties I get are the ones from the collection object itself, like Count.
What am I missing here, what do I need to define/override for the grid to work with these?
Pointers to example code would be excellent! :)

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 31 Jan 2013, 12:55 PM
Hi Mats,

 May I ask you to send us a repro project so that we would be able to debug it on our side?

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PropertyGrid
Asked by
Mats
Top achievements
Rank 2
Answers by
Ivan Ivanov
Telerik team
Share this question
or