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
110
xamDataGrid grouping
posted

Hi, I have this data: 

 

<Data type="Imaging">
                            <Title>Imaging stuff</Title>
                            <Summary>img stuff goes here</Summary>
                            <Images>
                                <Image id="img1" size="122" colour="blue"></Image>
                                <Image id="img2" size="122" colour="blue"></Image>
                                <Image id="img3" size="122" colour="blue"></Image>
                            </Images>
                            <Styles>
                                <Style id="style1">
                                    <Substyle id="sub1"></Substyle>
                                    <Substyle id="sub2"></Substyle>                                    
                                </Style>
                                <Style id="style2">
                                    <Substyle id="sub1"></Substyle>
                                    <Substyle id="sub2"></Substyle>
                                    <Substyle id="sub3"></Substyle>
                                    <Substyle id="sub4"></Substyle>
                                    <Substyle id="sub5"></Substyle>
                                </Style>
                                <Style id="style3">
                                    <Substyle id="sub1"></Substyle>                                    
                                </Style>
                            </Styles>
                        </Data>
 
 
                        <Data type="Encounter">
                            <Title>Introducing Microsoft .NET</Title>
                            <Summary>Overview of .NET Technology</Summary>
                            <Parameters>
                                <Parameter id="qw" xx="12" yy="123" zz="1234"></Parameter>
                                <Parameter id="qz" xx="12" yy="123" zz="1234"></Parameter>
                                <Parameter id="qa" xx="12" yy="123" zz="1234"></Parameter>
                                <Parameter id="qd" xx="12" yy="123" zz="1234"></Parameter>
                            </Parameters>
                        </Data>
 
                        <Data type="Labs">
                            <Title>Microsoft C# Language Specifications</Title>
                            <Summary>The C# language definition</Summary>     
                            <Parameters>
                                <Parameter id="qw" xx="12" yy="123" zz="1234"></Parameter>
                                <Parameter id="qz" xx="12" yy="123" zz="1234"></Parameter>
                                <Parameter id="qa" xx="12" yy="123" zz="1234"></Parameter>
                                <Parameter id="qd" xx="12" yy="123" zz="1234"></Parameter>
                            </Parameters>
                        </Data>

I want to show it in xamDataGrid, this is what I get:

Now to the question:

How do I get rid of the rows that are not relevant for specific type.

For example in "Imaging" "Parameters" row is empty and came from "Encounter".

And in "Encounter" "Images" and "Styles" are not relevant.

So how do I manage to show only relevant rows?

Thanks!