Wisej.NET Extensions
HomeNewsSupportVideos
  • Overview
  • Introduction
    • Extension Types
    • API
    • Concepts
    • Theme Builder
  • Icon Packs
    • Overview
    • BootstrapIcons
    • ElegantIcons
    • FontAwesome
    • MaterialDesign
    • ModernUI
    • VaadinIcons
    • VisualStudioIcons
  • Extensions
    • Themes
    • AceEditor
      • API
        • AceEditor
    • Amazon S3
      • API
        • S3FileSystemProvider
    • ASPNetControl
      • API
        • AspNetWrapper<T>
        • AspNetWrapperBase
        • HttpModule
        • HttpModuleStartup
    • Barcode
      • API
        • Barcode
        • BarcodeReader
        • BarcodeType
        • ScanEventArgs
        • ScanEventHandler
        • ScanMode
    • BingWallpaper
      • API
        • BingWallpaper
    • Brotli
      • API
        • Brotli
    • Bubbles
      • API
        • BubbleEventArgs
        • BubbleNotification
        • BubbleStyle
    • Camera
      • API
        • Camera
        • CameraErrorEventArgs
    • ChartJS
      • API
        • ChartClickEventArgs
        • ChartClickEventHandler
        • ChartJS
        • ChartType
        • DataLabelAlign
        • DataLabelAnchor
        • DataLabelTextAlignment
        • DataSet
        • DataSetCollection
        • OptionsAxisGridLines
        • OptionsBase
        • OptionsDataLabel
        • OptionsLegend
        • OptionsScales
        • OptionsTitle
        • OptionsTooltips
        • PointStyle
        • ScaleType
        • SteppedLine
    • Chat Control
      • API
    • CKEditor
      • API
        • CKEditor
        • CommandEventArgs
        • ExternalPlugin
        • LinkClickedEventArgs
    • ClearScript
      • API
        • ClearScript
        • EngineType
        • JScriptEngine
        • V8JavaScriptEngine
        • VBScriptEngine
    • ClientClipboard
      • API
    • ClientFileSystem
      • API
    • ColumnFilter
      • API
        • ColumnFilter
        • ColumnFilterPanel
        • SimpleColumnFilterPanel
        • WhereColumnFilterPanel
    • CoolClock
      • API
        • CoolClock
        • CoolClockSkin
        • CoolClockType
    • CountUp
      • API
        • CountUp
    • CustomWallpaper
      • API
        • CustomWallpaper
    • DataGridViewSummaryRow
      • API
        • DataGridViewSummaryRow
        • DataGridViewSummaryRowExtensions
        • SummaryType
    • FullCalendar
      • API
        • BusinessHours
        • ColumnHeaderFormats
        • DayClickEventArgs
        • Event
        • EventClickEventArgs
        • EventCollection
        • EventValueEventArgs
        • FullCalendar
        • ItemDropEventArgs
        • Resource
        • ResourceEventArgs
        • RetrieveVirtualEventEventArgs
        • ThemeSystem
        • ViewType
        • VirtualEventsNeededEventArgs
    • Geolocation
      • API
        • Geolocation
        • StatusCode
    • GoogleMaps
      • API
        • GeocoderLocationType
        • GeocoderResult
        • GoogleMap
        • LatLng
        • LatLngBounds
        • MapMouseEventArgs
        • MapPropertyChangedEventArgs
        • MarkerDragEventArgs
        • TravelMode
    • Html2Canvas
      • API
        • Html2Canvas
        • Html2CanvasOptions
    • jQueryKnob
      • API
        • Knob
        • KnobType
        • LineCapType
    • jSequence
      • API
        • ElementClickEventArgs
        • Sequence
    • JustGage
      • API
        • CustomSector
        • JustGage
    • NavigationBar
      • API
        • NavigationBar
        • NavigationBarItem
        • NavigationBarItemClickEventArgs
        • NavigationBarItemCollection
    • Notification
      • API
        • Notification
        • NotificationClickEventArgs
    • OfficeViewer
      • API
        • OfficeViewer
    • Pannellum
      • API
        • Pannellum
    • Polymer
      • API
        • PolymerComponent
        • PolymerWidget
    • ProgressCircle
      • API
        • ProgressCircle
    • RibbonBar
      • API
        • RibbonBar
        • RibbonBarAppButton
        • [RibbonBarCollectionBase<TOwner, TElement>](extensions/ribbonbar/api/wisej.web.ext.ribbonbar.ribbonb
        • RibbonBarGroup
        • RibbonBarGroupCollection
        • RibbonBarGroupEventArgs
        • RibbonBarItem
        • RibbonBarItemButton
        • RibbonBarItemButtonGroup
        • RibbonBarItemCheckBox
        • RibbonBarItemCollection
        • RibbonBarItemComboBox
        • RibbonBarItemControl
        • RibbonBarItemEventArgs
        • RibbonBarItemRadioButton
        • RibbonBarItemSeparator
        • RibbonBarItemSplitButton
        • RibbonBarItemTextBox
        • RibbonBarMenuItemEventArgs
        • RibbonBarPage
        • RibbonBarPageCollection
    • SideButton
      • API
        • SideButton
    • Signature
      • API
        • Signature
    • SmoothieChart
      • API
        • DataNeededEventArgs
        • InterpolationType
        • SmoothieChart
        • TimeSeries
        • TimeSeriesCollection
    • Speech
      • API
        • SpeechRecognition
        • SpeechRecognitionEventArgs
        • SpeechRecognitionResult
        • SpeechSynthesis
    • TaskBar
      • API
        • TaskBar
    • Tesseract
      • API
        • Tesseract
    • TinyEditor
      • API
        • TinyEditor
    • TinyMCE
      • API
        • TinyMCE
    • TourPanel
      • API
        • TourPanel
        • TourPanelEventArgs
        • TourStep
    • Translation
      • API
        • Translation
        • TranslationProviderBase
        • TranslationProviderYandex
        • TranslationResult
    • WebARIA
      • API
        • ARIA
        • Invalid
        • TriState
        • WebARIA
    • WebAuthn
      • API
        • Assertion
        • AttestationConveyancePreference
        • AuthenticatorAttachment
        • AuthenticatorData
        • AuthenticatorSelectionCriteria
        • AuthenticatorTransport
        • ClientData
        • COSEAlgorithmIdentifier
        • CredentialsResponse
        • PublicKey
        • PublicKeyCredentialDescriptor
        • PublicKeyCredentialParameters
        • PublicKeyCredentialUserEntity
        • RelyingParty
        • ResidentKeyRequirement
        • WebAuthn
    • WebShare
      • API
        • WebShare
    • XTerm
      • API
        • XTerm
  • Premium Extensions
    • Overview
    • Configuration
    • Webix
    • Syncfusion EJ1
    • Syncfusion EJ2
    • Telerik KendoUI
    • Infragistics IgniteUI
    • DevExpress DevExtreme
Powered by GitBook
On this page

Was this helpful?

  1. Extensions

DataGridViewSummaryRow

PreviousCustomWallpaperNextAPI

Last updated 2 years ago

Was this helpful?

Adds a new method to the DataGridView to automatically generate subtotal and summary rows using several different aggregation models.

This extension is not needed anymore for Wisej 2.5+ as its functionality has been fully integrated into the core Wisej Framework.

How to Use

To add the values in colSales, grouped by the columns from colRegion to colCountry.

this.dataGridView1.AddSummaryRows(
    SummaryType.Sum, 
    SummaryRowPosition.Above, 
    this.colRegion, 
    this.colCountry, 
    this.colSales, 
    style);
Me.dataGridView1.AddSummaryRows( _
    SummaryType.Sum, _
    SummaryRowPosition.Above, _
    this.colRegion, _
    this.colCountry, _
    this.colSales, _
    style)

Call multiple times to aggregate different columns. It will add the subtotal to the same summary row that matches the group. You can create multiple parent summaries using .

The method returns an array of rows that you can post process. You can also either pass a DataGridViewCellStyle to the method or assign it directly to the newly added rows.

DataGridViewSummaryRow
https://github.com/iceteagroup/wisej-extensions/tree/master/Wisej.Web.Ext.DataGridViewSummaryRowgithub.com
DataGridViewSummaryRow Source Code
SummaryRowPosition.Parent
AddSummaryRows