hi,
I am using version 7.3 and have binded a grid with the windows bindingsource which I have binded to a class. As expected, the grid displays columns for each of the properties. I wish to change the title of the column without having to manually modify the Caption property of the Header property. Is there an attribute the binding manager looks for on the class property or something else that can be done at runtime?
Secondly, in the cases where I databind a class that has properties which are collections, how do I show them as a hierachy in the grid ?
Cheers
Peter
Hi Peter,
1) No, you will need to set the Caption on the column header.
2) If your data object has a property that returns an IList or IBindingList (a collection is an IList), then the grid will display it as a list of child rows.