Hi,
I have a custom class that gets its properties dynamically from a
database at runtime. Therefore I implemented the ICustomTypeDescriptor
in this class and created a a custom PropertyDescriptor. The custom
class also inherits from Component and therefore can be dragged on the
form in the designer view.
So far so good, I can bind properties from my class to textboxes etc.
But when I try to bind an ArrayList containig instances of my custom
class to a DataGrid, for all rows the properties of the first object
are displayed. However, the number of rows is correct.
It seems to me as if the PropertyDescriptor of the wrong instance is
called. The value of the component passed with the GetValue method is
different from the one I pass to the constructor.
Can anybody help?
- raymi