Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
865
Removing Summaries before adding a new summaries to the grid
posted

Hi,

 I do add summeries to the grid but later on i would like to remove them. how can i do that?

If Me.gridInvoice1.DisplayLayout.Bands(0).Summaries.Count = 0 Then

Me.gridInvoice1.DisplayLayout.Bands(0).Summaries.Add(SummaryType.Sum, _

Me.gridInvoice1.DisplayLayout.Bands(0).Columns("Quantity"), SummaryPosition.UseSummaryPositionColumn)

Me.gridInvoice1.DisplayLayout.Bands(0).Summaries.Add(SummaryType.Sum, _

Me.gridInvoice1.DisplayLayout.Bands(0).Columns("Amount"), SummaryPosition.UseSummaryPositionColumn)

Me.gridInvoice1.DisplayLayout.Bands(0).Summaries.Add(SummaryType.Sum, _

Me.gridInvoice1.DisplayLayout.Bands(0).Columns("Vat"), SummaryPosition.UseSummaryPositionColumn)

Me.gridInvoice1.DisplayLayout.Bands(0).Summaries.Add(SummaryType.Sum, _ Me.gridInvoice1.DisplayLayout.Bands(0).Columns("Total"), SummaryPosition.UseSummaryPositionColumn)

End If

Thanks,

Kamal

Parents
No Data
Reply Children
No Data