Hi, I have a parent band and two child bands using a row layout. I need column headers for parent band and first child band to be visible only at top and headers for 2nd child band disabled.
I am able to have parent's headers fixed on top, and 2nd child band's headers disabled. But first child band's column headers are getting repeated every set of parent child records. How do I do that? HeaderPlacement = FixedOnTop is not working
I am able to hide subsequent headers by skipping drawing in IUIElementDrawFilter.DrawElement() but it leaves empty space and headers do exist but are just not visible. I want them completely gone from following rows without leaving any gaps there.
Pl. see attached screenshot for visual details.
Thanks,
m
Was this resolved?
mahatma said:But meanwhile is there a trick/hack to show dummy headers at the top (see screenshot in my original post)? Actually, I don't really need them to be actual headers. It will work for me as long as it has look and feel of headers to the users at run time.
I can't think of any reasonable way to do this.
Thanks. It would be great if you can include the fix in next patch or service release on v9.2.
But meanwhile is there a trick/hack to show dummy headers at the top (see screenshot in my original post)? Actually, I don't really need them to be actual headers. It will work for me as long as it has look and feel of headers to the users at run time.
Hm, no, actually, I didn't think the second child band made any difference. I tried it out, now, though, and I see the problem.
It looks like the grid does not honor FixedOnTop setting for headers for sibling child bands. This actually makes sense when both child bands are displaying their column headers. Displaying two sets of headers on top would not work.
But in this case, where you are hiding the second set of child band headers, it seems like it should be possible. Although it may not be easy for the grid to detect this case in an efficient way.
I'm going to forward this thread over to Infragistics Developer Support so they can check it out. This might be considered a feature request rather than a bug, but it's something we should definitely look into.
Mike, I was on v9.1 and recently upgraded to v9.2. But this problem exists on both versions.
Yes, I do have ViewStyleBand set to Horizontal. Did you have two child bands with headers for 2nd one disabled when you tried out?