I got an Entity that has a property that is ParentId. So the entity can have a paren.
How do you activate the ultragrid so it present the hierarchy. Now it's just listing all entity but not in a hierarchy.
I think IList does not make the list bindable, I think your collection should implement IBindingList interface.
try adding this attribute to your property collection :
[System.ComponentModel.Bindable( System.ComponentModel.BindableSupport.Yes)]
Hi
Am working with Win UltraGrid and GenPro Objects(for Database).
I have a Collection of objects intend to bind to the grid. These objects indeed have another collection of objects, exposed as public property.
These collection derives from IList, so i guess there should be somewhere I can tell the grid to show these as hierarchy items.
I dont want to create another dataset from these collection of objects and define relations, as this would mean, making redundant copy of my data and having these objects in sync with the rows. Can't this be done in a simpler fashion by any settings?
Yes, the grid works with one of two interfaces: IBindingList or IList. If you have a List of Entity objects and want the grid to display a child band, then the Entity objectmust expose a public property that it either a List or BindingList.
Mike Saltzman"]You would have to create a data source of some kind that returns a hierarchy of data
You would have to create a data source of some kind that returns a hierarchy of data
Is that achieved by the Entity having a collection of child entities? is that the way the grid will detect a hierarchy?