Hi,
I need to have a summary for each groupBy row where the source column is of bool type and all cells values of the column in the scope of one "group" will always have the same value.
I've implemented custom ICustomSummaryCalculator that returns a bool value to be shown in the summary. However the value is shown in the format "Summary = True". I would like instead to have a checkbox displayed in the summary. Is that possible?
Thanks,
Vitaly
Hi Vitaly,
Set the DisplayFormat property on the SummarySettings object. This is the object that is returned to you from the Summaries.Add method.
Mike,
Thanks for the response.
I think you've misunderstood me. I don't need to format the string the summary contains, but rather I would like a checkbox to represent my bool value at the summary row. This checkbox will respond to mouse click actions and will change its state (check/uncheck) appropriately.
Oh, sorry. You are right, I seem to have misread your last sentence.
No, there's no easy way to do that. Summaries are never editable. You could use a CreationFilter to put a CheckBox in there, but it's not a trivial understaking. I think there's a sample in the KB that demonstrates putting a CheckBox into the column header to check / uncheck an entire column. Is that the kind of thing you want?
Actually I'm looking for a way to put a checkbox into the groupBy row, but as I understood that's not possible. So I thought the checkbox can be put to a summary.
I need a way to check/uncheck an entire column using a CheckBox that is put into groupby row or its summary.
Who says it's not possible?
HOWTO:How can I add a CheckBox to each GroupByRow in the UltraWinGrid?
Hi Mike,
I have a UltraWinGrid in which i display summaries for each GroupByRow. Is it possible for one GroupByRow Summary to be an Average and the other to be a Sum.
Eg: This is how the summaries in the grid for each GroupByRow should show up.
ItemGroupSum 10 20 40 (Sum of ItemGroupAvg1 Summary Value, ItemGroupAvg2 Summary Value)
ItemGroupAvg1 5 10 20 (Average of ItemSum1 Summary Value, ItemSum2 Summary Value)
ItemSum1 5 10 20
ItemSum2 5 10 20
ItemGroupAvg2 5 10 20 (Average of ItemSum1 Summary Value, ItemSum2 Summary Value)
Thanks,Dilip
Hi Dilip,
No, I don't think so. It might be possible to do this with two summaries and maybe you could use a CreationFilter to manipulate the elements so that one or the other shows up on the GroupByRow depending on which GroupByRow it is. But this would not be easy.
Perhaps another option would be to use a custom summary. You could create an ICustomSummaryCalculator class that does different things depending on what rows collection it is working with.
I'm not sure either of these methods would actually work, I'm just speculating.