We have a grid where the bands are set up with AllowColSizing = AllowColSizing.Syncroized but when I perform auto resize on the column it only resizes to fit information contained in the top most band that is associated with that column header. Is there a way to have it include all syncronized bands to that column header?
Thanks for replying Boris.
I would think that if the bands are set to synchronize then the grid would automatically do this behavior with PerformAutoResizeColumns() but if you do not want to change the behavior for existing grids then I would need a parameter on the PerformAutoResizeColumns() method to include synchronized child bands. Implementing this myself does not seem like a viable solution because there is no good event on which I could perform this behavior without affecting manual re-sizing f the columns by the user.
Thanks again,
Derek
Hi Derek,
If you want this kind of behaviour from the grid control you could implement some calculations yourself. If you want some specific property to have in the grid or method for that matter, please let me know what you think it should be.
There is no easy solution for this. I would expect the grid to behave this way if the band is set to synchronize the column sizing. Is there any other way of achieving this?
Hello Derek,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Actually.... it just occurred to me that AfterColPosChanged might not work for what you want here, because you will not be able to distinguish between when the user AutoSizes the column or when they click and drag to size the column. But I'm, afraid I don't see any other way to do this - unless you disable the grid's built-in AutoSize functionality and re-implement it yourself.