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
300
Display Child ELement in same grid.
posted

I have Employee class ….below are the attributes of it.

·         ID

·         Name

·         Address1

·         List<ContackNo>

o   Definition of ContackNo

§  MobileNo

§  HomeNo

 

Our requirement is we want to display below thins in Grid with Horizontal orientation.

1.       ID

2.       Name

3.       Contact No Item 1

4.       Contact No Item 2

5.       Contact No Item 3

6.       Etc…

Please check the screen capture which clears the requirement.

We don't want + and - sign to expand items.

Please check the demo application which simulate problem.

 

XAMDataGridBase.rar
Parents
No Data
Reply
  • 69686
    posted

    Hello,

    As you have defined two layouts in the xaml, you will have hierarchical structure. You can disable it by setting the ExpansionIndicatorDisplayMode property of the FieldLayoutSettings or IsNestedDataDisplayEnabled property of the XamDataGrid. You can show nested value in the parent layout by using unbound fields and setting the BindingPath property to an indexed expression, like this :

    BindingPath="ContackNos[0].MobileNo"

Children