I have an ultragrid with multiple bands with identical columns. The interband spacing is = 0 and bands > 0 have ColHeadersVisible = false, so all columns in all bands line up with headers at the top only. I'd like to add visible groups over band[0] only. I've tried adding groups for each band , but I don't want ot see lower band groups, and I still want the columns to line up. Is that possible?
Thanks,
Ron
I found the band.GroupHeadersVisible = false which gets rid the lower band group headers but the columns are still not aligning.
Hi Ron,
If I understand you correctly, you have mutliple bands on the grid with the same columns and you want the grid to appear like a single band - like OutlookExpress.So you want the columns in every band to line up exactly.
By default, the columns in the grid will line up with the columns in the other bands. But once you add groups, the grid will align the groups and not the columns. In theory, you could keep the columns in synch by trapping for changes in the width of a column and then adjusting the same column in all of the other bands. You could do this in the AfterColPosChanged event.
I say "in theory" because I am not entirely sure this will work in practice. For one thing, the first column in each child band is indented, so the column widths will not be exactly the same, nor will the group widths. You could set Indentation on the band to 0 and this would alleviate the issue. But there may be other issues where setting the widths of the columns in a particular order might have an unpredictable effect.
I don't see any easy solution for what you want to do.