Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
260
Wingrid databing question
posted

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

 

 

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    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.  

Children
No Data