Hello,
According to this online doc: https://es.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.summaryvalue
"A SummarySettings instance can have multiple SummaryValue instances associated with it."
How is the instancing of SummaryValue to SummarySettings controlled? I need to ensure I have one-to-one, i.e. one SummaryValue to one SummarySettings instance, so that I can independently set this property for each instance of SummaryValue; e.g. summaryValue.SummarySettings.DisplayFormat.
Please advise, thanks!
Is it possible that different group by rows, same column, share the same instance of SummarySettings?
e.g. ultraGridGroupByRow1.Rows.SummaryValues["col1"].SummarySettings == UltraGridGroupByRow2.Rows.SummaryValues["col1"].SummarySettings
If this is true, is it possible to ensure each SummaryValue, regardless of row, from the same column, will have a different instance of SummarySettings attached to it?
Hi,
It seems like this is basically the same question you asked in your other post.
A SummarySettings defines the summary for the entire band. The grid creates the SummaryValues associated with that SummarySettings based on the instances that are needed. For example, you would need at least one SummaryValue per GroupByRow or for each island of child rows.
GAH said:Is it possible that different group by rows, same column, share the same instance of SummarySettings?
The short answer to this question is no, there's no way to do that. Nor can I imagine any reason why you would want to. What are you trying to do that makes you think you would need this? It seems like whatever you are trying to achieve, you are probably going about it the wrong way.
Hi Mike,
So what I was trying to do is the following. I have UltraWinGrid 2016.2 grouping two columns OrderNum and AuthSeq. Group box is not visible.
* Some of the key settings that gave this grid its look & feel: GroupBySummaryDisplayStyle.SummaryCells, SummaryDisplayAreas.InGroupByRows, AllowColSizing.Synchronized
* Rows 143, 144 are the UltraGridGroupByRow and SummaryValues.
* Rows with white background are the data rows UltraGridRow.
* There is an ICustomSummaryCalculator attached to the column TradingLmt which returns some numeric value.
I need the ability to change the TradingLmt SummaryValue (on the UltraGridGroupByRow) to some text based on some conditions. Different group by rows may show the numeric value from the Summary Calculator, or it may be overridden with some text. So, on the TradingLmt column, different SummaryValue on different group by row may show different override text; e.g. row 143, TradingLmt show "some-text3", row 144, TradingLmt show "some-text5".
Unlike UltraGridCell, SummaryValue appears to be stripped of features; like no support for Editors. I thought I could use SummaryValue.SummarySettings.DisplayFormat as a way to override the numeric value to show some text instead. However, this couldn't be set independently of each group by row SummaryValue.SummarySettings. Problem is seen below.
Desired:
What are possible solutions to override/change the text being displayed in each individual SummaryValue? Thanks again.
Well, the easiest way to achieve that would be to have your ICustomSummaryCalculator return the text you want to display. The value you return doesn't have to be numeric.
You could handle this in your ICustomSummaryCalculator.EndCustomSummary either based on the calculated summary value you were going to use, or you could use rows.Parent to get the GroupByRow and examine it for whatever criteria you are looking for that determines whether to show the value or text.
Thank you.