Hi,
I am using NetAdvantage 2011.1 UltraWinGrid and UltraDataSouce. The grid has two bands (a parent and a child). At times I wish to only display the children using the same grid band layout of the child as defined in the parent/child.
I know that I can perform a SetDataBinding where the member is the child band, but I lose my grid band layout. Is there a way to perform this?
Thanks!
What kind of layout are you referring to here? If you are using RowLayouts, then you can save the RowLayout on the band when it's a child band and then load it into the root band when it becomes the parent band.
If you are not using RowLayouts, then there's no automatic way to do this. You would have to set up the layout yourself and save it to a Layout file or do it all in code.
I am referring to the changes I made in to the child band's columns via the designer (i.e., Header captions, cell formating, column hiding, etc.).
No, there is no way to transfer any of that. What I usually do is do all of that kind of stuff in the InitializeLayout event of the grid. That way, it's flexible and you could apply it to any band just by checking the bands Key.
OK, Thanks!
Is there any way to hide the grid's parent band but just show the child?
No, hiding the parent always hides the child rows.
Is there anything else we can help you with?
Michael S.