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
65
How to override DataRecordPresenter Style
posted

I have hierarchical data.  There is a one to one relationship between my parent and child.  My requirements dictate that only the child be displayed in the grid.  What is the best way to accomplish this with xamDataGrid?

My first approach was to create a new DataRecordPresenter style that has a new Template and set that on the grid.  However I get a null exception during runtime and the only information from that exception is a stacktrace that goes deep into Infragistics code.  Also, I am not sure what to put in the Template.

Parents
  • 4850
    Verified Answer
    Offline posted

    If the child is exposed as a property off the parent then the easiest way is to use UnboundFields (one for each property of the child that you want to see), setting the UnboundField's BindingPath property to "(xxx).yyy" where xxx is the name of the property exposed off the parent record which returns the child record and yyy is the name of a property on the child.

    I hope this helps.

Reply Children