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.