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
385
Field Binding to a Complex object in the data grid
posted

//Ignoring property changed notifier, public, ObservableCollection etc for brevity

class Model

{

    int X;

    MyType T

}

 

class MyType { 

int Z; 

}

 

I need to bind to something like T.Z in the data grid, How do I do that?

 

  • 69686
    Suggested Answer
    posted

    Hello,

    For this, you have to use UnboundFields instead of just Fields. You have to set their BindingPath property to T.Z.

    Hope this helps.