I've got a grid that I'm using kind of like a summary in an installer. I'm showing the separate items that I'm grouping on with a count of items in each group. What I need to do is show the count of any of the items in each group that failed. In any group there could be some that pass or fail, and I'm only interested in a count of the subgroup.
Imports1 3 failed
Imports2 14 passed
Imports3 27 failed
I also need to get rid of the GroupBy header which I haven't been able to do. I don't need to regroup or show how it's grouped. I'm just interested in the groupings themselves.
Hello Sean,
Thank you for contacting Infragistics!
Concerning hiding the group by header you will want to set the following:this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;this.ultraGrid1.DisplayLayout.GroupByBox.Prompt = "";
www.infragistics.com/.../turn-off-hide-drag-a-column-header-in-ultragrid
For displaying the number failed if you are not grouping by that field it seems you would want to adjust the caption of the group row:www.infragistics.com/.../change-the-caption-of-a-groupby-row
Thanks Mike, that did the trick for the headers.
However, even after looking at the other page you gave me I still can't figure out how to count a subset of rows in each group. Getting a custom group summary is easy, but it always gives me the count for the entire group.
Thank you for the update. You would have to look through the rows in the group yourself and take your own count of the failed. One place you could do that is the InitializeGroupByRow event. You can also look at doing a custom summary:
www.infragistics.com/.../levels-of-ultrawingrid-groups-summary-and-a-calculate-pondered-average-with-custom-summary