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!
Hello Yuri,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thank you very much Stefan!This is exactly what i looked for!It works!
Thanks for superb service!
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want using the xml structure you provided. Basically I set the ExpansionIndicatorVisibility to CheckOnDisplay and add a Trigger to the ExpandableFieldRecordPresenter to determine whether to hide or not the Record. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.