I am using UltraGrid with GroupBy feature enabled, and I have the following features to allow showing summary cells on the groupby row.
band.Override.GroupBySummaryDisplayStyle = GroupBySummaryDisplayStyle.SummaryCells; band.Override.SummaryDisplayArea = SummaryDisplayAreas.InGroupByRows;
I also created some custom SummaryCalculators which everything worked as expected, but I was only able to display text within these summary cells. For example, if a column is a checkbox style column, I would like the summary cell to also be a CheckBox with a summary value that figures out by a custom SummaryCalculator. If it is an image style column, I want to display an summary image on the summary cell of the column as well. Is there a way to do that?
Thanks.
Michael
Hi Michael,
There's no built-in support for CheckBoxes in summary cells. I think it might be possible to display an image in a summary cell via the Appearance, but not as the summary value.
You could probably achieve this using a CreationFilter, but this is not a trivial undertaking. I could probably help you with that, but just to clarify, you don't want the checkbox in the summary to be clickable, do you? Displaying a Checkbox in a summary would be one thing, but making it editable would be something else.
Regarding images, I assume you are actually assigning an Image object to the summary value via your custom summary calculator? Or are you just assigning some numeric or other key value that you expect to translate into an image?
Thanks Mike. Ok, I actually explored a similar approach (perhaps the same) using DrawFilter on the grid, and draw the checkbox as an image by using checkbox.DrawToBitmap(...) to create the image when drawing SummaryValueUIElement. There is no need to for these summary cells to be editable, it's all read-only. I was hoping there are other ways. Just wondering, has anyone else asks for this feature? Thanks.