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
To get the value of a summary, you can't use the band, you have to get it from a Rows collection. So, for the root band, you would do something like this:
this.ultraGrid1.Rows.SummaryValues[summaryKeyorIndex].Value
There's no way to get a summary for a child band, because there are no summaries for child bands. Once again, the summary is a summary of a rows collection. So you would have to get a reference to the particular rows collection you want and use the SummaryValues collection on that. How you get the rows depends on which rows you want.
I woud like to know regarding page wise total for columns.
plz some one help me
With regards
Sutha