In order to try to bend the will of the GridView to do something we're attempting, I'm trying to dynamically either completely hide or to change the height of a SPECIFIC group header row down to something 1 pixel in height if the group text is blank.
I've tried all of the following:
All this has done has completely hidden the group rows but still leaves blank space where they shuold be, however now I can't select them (which is nice).
Is there any way to change the size so the space left when hidden is minimized?
Thanks in advance.
I've tried all of the following:
if (e.RowElement is GridGroupHeaderRowElement) |
{ |
e.RowElement.Size = new Size(1, 1); |
e.RowElement.ShouldPaint = false; |
e.RowElement.Visibility = ElementVisibility.Hidden; |
e.RowElement.MinSize = new Size(e.RowElement.Size.Width, 0); |
e.RowElement.Size = new Size(e.RowElement.Size.Width, 1); |
e.RowElement.CoercedSize = new Size(e.RowElement.Size.Width, 1); |
e.RowElement.StretchVertically = false; |
this.ApplyThemeToElement(e.RowElement, "ControlDefault"); |
} |
All this has done has completely hidden the group rows but still leaves blank space where they shuold be, however now I can't select them (which is nice).
Is there any way to change the size so the space left when hidden is minimized?
Thanks in advance.