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.
That is not encouraging. If I could line up the first column of the bands (stretch the width of upper bands to the the right border of the inner most band's 1st column), I might be able to then adjust the remaining columns widths of the other columns to match up.How would I calculate the first columns widths based on the lowest band's 1st column?
I did what I said in the previous post and everything so far is working as expected. I have to deal with columns resizing and freezing but so far it looks good. Thanks
I may have a solution. I put the groups on band[0] only; all the other bands columns line up within themselves. I set lower bands indentation to 15;
I adjust the first band 0 column 's width to be equal to the lowest band's column width + (indentation * last band index). That seems to align the left most columns. Hopefully
I can then match the other columns' widths.