Hi, I am looking for sample code that create a summary row of an UltraGrid. I am learning C#, please help.
Thanks,
Hi,
I'm sure there are sample of this in the WinGrid Samples Explorer that installed with the NetAdantage SDK.
Basically, the best place to do this is in the InitializeLayout event. A very simply exmaple would look something like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Summaries.Add(SummaryType.Sum, e.Layout.Bands[0].Columns["My Grid Column"]); }
how to Get Two Bands value in UltraWinGrid
UltraGrid.DisplayLayout.Bands[0]
UltraGrid.DisplayLayout.Bands[1]
this two bands Summaries value how ll get using Query
UltraGrid.Displaylayout.bands[0].SummariesValues
UltraGrid.Displaylayout.bands[1].SummariesValues
how to Get
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.SummaryFooterCaptionVisible = DefaultableBoolean.False; }
Anybody help me????????
Please, plaese...
Hi Mike,
I have a problem,
I want to hide or remove Footer Summary of Group, chosen area, but Grand Summaries and Group Header Summary will show,
I use UltraWinGrid, Thank you,
Can you help me.
Thanks for your help.
ICustomSummaryCalculator and UltraCalcManager are two totally different approaches. You certainly don't need both.
UltraCalcManager is a component. You add it to the form from the toolbox like you would any other component or control.
But really, the external summary is the easiest way to go.