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
100
display property value of an object in ultrawingrid
posted

i am binding the wingrid to a custom object, one of the property on the custom object is also an object. the grid is display the type name of the sub object. i want to display a property name in the sub object how would I do this.

Parents
No Data
Reply
  • 469350
    Offline posted

    Actually, the grid does not display type name directly. What the grid does is call the ToString method on the cell's Value. The default implementation of ToString shows the name of the type.

    So the easiest thing for you to do would to override the the ToString method on your class to return whatever you want the user to see.

Children
No Data