Skip to main content

DataGridViewSummaryRowExtensions

Namespace: Wisej.Web.Ext.DataGridViewSummaryRow

Assembly: Wisej.Web.Ext.DataGridViewSummaryRow

Adds summary methods to the DataGridView control.

public class DataGridViewSummaryRowExtensions
info

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Methods

Static memberAddSummaryRows(grid, summaryType, groupCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in column groupCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
groupColStringName of the column that determines the group break values.
summaryColStringname of the column to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberAddSummaryRows(grid, summaryType, summaryPosition, groupCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in column groupCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
summaryPositionSummaryRowPositionIndicates the position of the DataGridViewSummaryRow.
groupColStringName of the column that determines the group break values.
summaryColStringName of the column to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberAddSummaryRows(grid, summaryType, groupFromCol, groupToCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in the columns from groupFromCol to groupToCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
groupFromColStringName of the first column that determines the group break values.
groupToColStringName of the last column that determines the group break values.
summaryColStringName of the column to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberAddSummaryRows(grid, summaryType, summaryPosition, groupFromCol, groupToCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in the columns from groupFromCol to groupToCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
summaryPositionSummaryRowPositionIndicates the position of the DataGridViewSummaryRow.
groupFromColStringName of the first column that determines the group break values.
groupToColStringName of the last column that determines the group break values.
summaryColStringName of the column to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberAddSummaryRows(grid, summaryType, groupCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in columns groupCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
groupColDataGridViewColumnColumn that determines the group break values.
summaryColDataGridViewColumnColumn to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberAddSummaryRows(grid, summaryType, summaryPosition, groupCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in columns groupCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
summaryPositionSummaryRowPositionIndicates the position of the DataGridViewSummaryRow.
groupColDataGridViewColumnColumn that determines the group break values.
summaryColDataGridViewColumnColumn to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberAddSummaryRows(grid, summaryType, groupFromCol, groupToCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in the columns from groupFromCol to groupToCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
groupFromColDataGridViewColumnFirst column that determines the group break values.
groupToColDataGridViewColumnLast column that determines the group break values.
summaryColDataGridViewColumnColumn to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberAddSummaryRows(grid, summaryType, summaryPosition, groupFromCol, groupToCol, summaryCol, style)

Creates or updates a DataGridViewSummaryRow for each group limited by the values in the columns from groupFromCol to groupToCol .

ParameterTypeDescription
gridDataGridViewExtension class.
summaryTypeSummaryTypeDetermines the aggregation type.
summaryPositionSummaryRowPositionIndicates the position of the DataGridViewSummaryRow.
groupFromColDataGridViewColumnFirst column that determines the group break values.
groupToColDataGridViewColumnLast column that determines the group break values.
summaryColDataGridViewColumnColumn to aggregate.
styleDataGridViewCellStyleOptional DataGridViewCellStyle for the summary rows.

Returns: DataGridViewSummaryRow[]. Array of the DataGridViewSummaryRow rows displaying the aggregated values.

Static memberRemoveSummaryRows(grid)

Removes the all the summary rows.

ParameterTypeDescription
gridDataGridViewTarget DataGridView.

Static memberRemoveSummaryRows(grid, summaryPosition)

Removes the summary rows that match the specified summaryPosition .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
summaryPositionSummaryRowPositionPosition of the summary rows to remove.

Static memberRemoveSummaryRows(grid, groupFromCol)

Removes the summary rows grouped by groupFromCol .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
groupFromColStringName of the first column that determnines the group break values.

Static memberRemoveSummaryRows(grid, groupFromCol, groupToCol)

Removes the summary rows grouped by groupFromCol and groupToCol .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
groupFromColStringName of the first column that determnines the group break values.
groupToColStringName of the last column that determines the group break values.

Static memberRemoveSummaryRows(grid, groupFromCol)

Removes the summary rows grouped by groupFromCol .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
groupFromColDataGridViewColumnFirst column that determnines the group break values.

Static memberRemoveSummaryRows(grid, groupFromCol, groupToCol)

Removes the summary rows grouped by groupFromCol and groupToCol .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
groupFromColDataGridViewColumnFirst column that determnines the group break values.
groupToColDataGridViewColumnLast column that determines the group break values.

Static memberRemoveSummaryRows(grid, summaryPosition, groupFromCol)

Removes the summary rows that match the specified summaryPosition and grouped by groupFromCol .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
summaryPositionSummaryRowPositionPosition of the summary rows to remove.
groupFromColStringName of the first column that determnines the group break values.

Static memberRemoveSummaryRows(grid, summaryPosition, groupFromCol, groupToCol)

Removes the summary rows that match the specified summaryPosition and grouped by groupFromCol and groupToCol .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
summaryPositionSummaryRowPositionPosition of the summary rows to remove.
groupFromColStringName of the first column that determnines the group break values.
groupToColStringName of the last column that determines the group break values.

Static memberRemoveSummaryRows(grid, summaryPosition, groupFromCol, groupToCol)

Removes the summary rows that match the specified summaryPosition and grouped by groupFromCol and groupToCol .

ParameterTypeDescription
gridDataGridViewTarget DataGridView.
summaryPositionSummaryRowPositionPosition of the summary rows to remove.
groupFromColDataGridViewColumnFirst column that determnines the group break values.
groupToColDataGridViewColumnLast column that determines the group break values.