Skip to content

Replies

0
Andrea Mariotti
Andrea Mariotti answered on May 2, 2016 5:06 PM

Goodafternoon Mike,

this works very well, thanks for all!

Also using the Sahaja's solution (with the ParentCollection idea that I posted before) works really well.

0
Andrea Mariotti
Andrea Mariotti answered on May 2, 2016 5:05 PM

Hi Sahaja,

this code doesnt work cause the e.Row doesn't have a "Bands" collection property (it has only a "Row" property).

But you bring me an idea: 

e.Row.ParentCollection can work with the SummaryValues!

0
Andrea Mariotti
Andrea Mariotti answered on Apr 27, 2016 10:07 AM

Goodmorning,

sorry but I don't understand:

I've got a master-detail, each master record has 2 detail table and each detail table has got a summary like the way I posted before:

column = e.Layout.Bands[2].Columns["ColumnName"];

column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Currency;

ss = column.Band.Summaries.Add(SummaryType.Sum, column);

ss.DisplayFormat = "{0:N2}";


If I use your code:

this.ultraGrid1.Rows.SummaryValues[SummarySettings].Value


the this.ultraGrid1.Rows.SummaryValues is empty.


If I've got a summary in the band[1] or band[2] how can I read it?

0
Andrea Mariotti
Andrea Mariotti answered on Nov 24, 2015 4:59 PM

Thanks for the reply, very easy and very fast: nice work!