Hi,
My grid has the first column group fixed, and our users has their customized views (setting columns to visible or not) saved in database. The problem is that when user has lots of columns visible in the first column group, they can't horizontally scroll to the second column group because the view is all occupied by the first column group and it is a fixed group.
Is there a way I can determine if the last visible column in the group is not visible in the view? In that case, I can manually remove the fixed property in InitializeLayout event.
Regards,
Jason
Thanks Mike,
Your solution works for me. I don't need to get the exactly width. As long as the first group is occupying most of the spaces, I will just change the Fixed flag to false.
var
band = DisplayLayout.Bands[0];
if (band.Groups.Count >= 1)
band.Groups[0].Header.Fixed = (band.Groups[0].Width + 200) < Parent.Width;
Hi Jason,
I don't think there is any really easy way to do this.
But it probably can be done by getting the Width property on the group and comparing that to the Width of the grid.
The tricky part is that you will have to account for the horizontal scroll bar (if it is there) and perhaps the grid's borders.