I have a grid which has groupby feature (ViewStyleBand.OutlockGroupBy) turned on with summary cells in the groupby row.
band.Override.GroupBySummaryDisplayStyle = GroupBySummaryDisplayStyle.SummaryCells; band.Override.SummaryDisplayArea = SummaryDisplayAreas.InGroupByRows;
Question 1 - The summary cells appear to be couple pixels shorter (height-wise) than the regular rows. Is there a way to programmatically adjust the summary cell height in the groupby row to the cells on the regular rows?
Question 2 - I noticed each groupby section appears to have a white line border around it. I would like to remove it so that there is no gap between each group. Is there a way to do that? I already used the following, but still couldn't get that white line border to go away.
DisplayLayout.Override.GroupByRowSpacingBefore = 0; DisplayLayout.Override.GroupByRowSpacingAfter = 0; DisplayLayout.Override.GroupByRowPadding = 0;
I was able to make it transparent, by setting DisplayLayout.Override.GroupByRowAppearance.BorderAlpha = Alpha.Transparent, but ideally, that's not what I want, I want the gap to completely go away. Thanks.
Hi Michael,
You might actually be able to solve both of these issues with one solution:
I tried changing the border color of the GroupBy Rows in the InitializeGroupByRow handler and it seemed like it had the effect you're looking for. Please try this out:
private void ultraGrid1_InitializeGroupByRow(object sender, Infragistics.Win.UltraWinGrid.InitializeGroupByRowEventArgs e) { e.Row.Appearance.BackColor = Color.Green; e.Row.Appearance.BorderColor = Color.Green; }
You can also set the Height of the rows directly in that method.
Actually, it is not what I was looking for. I already turned off painting the border white by using DisplayLayout.Override.GroupByRowAppearance.BorderAlpha = Alpha.Transparent, and that worked, but it has a gap there. Please see attachment. Another thing i want to mention is that I removed showing the groupby description using the following:
DisplayLayout.Override.GroupByRowDescriptionMask = " ";
because I want it to show more like a parent and child grid with cells at the group level. Please see attachment.
Thanks Mike. What about the summary cell height on the groupby row?
After investigating this more, I found that the grid is still leaving some space for the description even when setting it to nothing. We feel that there ought to be a way to completely hide the description and I believe this may be causing the gap to appear for you. I have logged this behavior in our internal tracking system with a Development ID of 224593. The next step will be for another developer to review my investigation and confirm my findings, or to offer a fix or other resolution.
Please let me know if you have any questions.
And here is a screenshot of what I want.
Oops, I can only attach one image in a post. Here is another screenshot of what your suggestion looked like.
Thanks Mike for the quick response, but maybe I wasn't clear on what I am looking for. Please see screenshots on what the 2 suggestions looked like, and I also included a screenshot of what I am looking for. Thanks again.