DataGridViewRowCollection

Wisej.Web.DataGridViewRowCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

A collection of DataGridViewRow objects.

public class DataGridViewRowCollection : IList, ICollection, IEnumerable, IList<DataGridViewRow>, ICollection<DataGridViewRow>, IEnumerable<DataGridViewRow>

Constructors

Initializes a new instance of the DataGridViewRowCollection class for the given DataGridView.

NameTypeDescription

dataGrid

The DataGridView that created this collection.

Properties

Int32: Returns the number of rows in the collection.

DataGridViewRow: Returns the DataGridViewRow at the specified index.

Throws:

Methods

Adds a new DataGridViewRow to the collection.

Returns: Int32. The index of the new DataGridViewRow.

Throws:

Adds a new DataGridViewRow to the collection, and populates the cells with the specified objects.

ParameterTypeDescription

values

A variable number of objects that populate the cells of the new DataGridViewRow.

Returns: Int32. The index of the new DataGridViewRow.

Throws:

Adds the specified DataGridViewRow to the collection.

ParameterTypeDescription

row

Returns: Int32. The index of the new DataGridViewRow.

Throws:

Adds the specified number of new rows to the collection.

ParameterTypeDescription

count

The number of rows to add to the DataGridViewRowCollection.

Returns: Int32. The index of the last row that was added.

Throws:

Adds the specified number of rows to the collection based on the row at the specified index.

ParameterTypeDescription

rowIndex

The index of the row on which to base the new rows.

count

The number of rows to add to the DataGridViewRowCollection.

Returns: Int32. The index of the last row that was added.

Throws:

Adds a DataGridViewRow row based on the DataGridViewRow at the specified index.

ParameterTypeDescription

rowIndex

The index of the row on which to base the new row.

Returns: Int32. The index of the new DataGridViewRow.

Throws:

Adds the specified DataGridViewRow objects to the collection.

ParameterTypeDescription

newRows

An array of DataGridViewRow objects to be added to the DataGridViewRowCollection.

Throws:

Clears the collection.

Throws:

Determines whether the specified DataGridViewRow is in the collection.

ParameterTypeDescription

row

Returns: Boolean. true if the DataGridViewRow is in the DataGridViewRowCollection; otherwise, false.

Copies the items from the collection into the specified DataGridViewRow array, starting at the specified index.

ParameterTypeDescription

array

A DataGridViewRow array that is the destination of the items copied from the DataGridViewRowCollection.

index

The zero-based index in array at which copying begins.

Throws:

Returns the first DataGridViewRow that matches the specified includeFilter and excludeFilter .

ParameterTypeDescription

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: DataGridViewRow. The first DataGridViewRow that matches the specified filters; or null if no row is found.

Throws:

Returns the index of the first DataGridViewRow that matches the specified includeFilter and excludeFilter .

ParameterTypeDescription

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: Int32. The index of the first DataGridViewRow that matches the specified filters; or -1 if no row is found.

Throws:

Returns the last DataGridViewRow that matches the includeFilter and excludeFilter .

ParameterTypeDescription

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: DataGridViewRow. The last DataGridViewRow that matches the specified filter; or null if no row is found.

Throws:

Returns the index of the last DataGridViewRow that matches the includeFilter and excludeFilter .

ParameterTypeDescription

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: Int32. The index of the last DataGridViewRow that matches the specified filter; or -1 if no row is found.

Throws:

Returns the next DataGridViewRow after startRow that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startRow

The row where the method should begin to look for the next DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: DataGridViewRow. The next DataGridViewRow that matches the filters; or null if no row is found after startRow .

Throws:

Returns the next DataGridViewRow after startIndex that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startIndex

The index of the row where the method should begin to look for the next DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: DataGridViewRow. The next DataGridViewRow that matches the filters; or null if no row is found after startIndex .

Throws:

Returns the index of the next DataGridViewRow after startRow that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startRow

The row where the method should begin to look for the next DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: Int32. The index of the next DataGridViewRow that matches the filters; or -1 if no row is found after startRow .

Throws:

Returns the index of the next DataGridViewRow after startIndex that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startIndex

The index of the row where the method should begin to look for the next DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: Int32. The index of the next DataGridViewRow that matches the filters; or -1 if no row is found after startIndex .

Throws:

Returns the previous DataGridViewRow before startRow that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startRow

The row where the method should begin to look for the previous DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: DataGridViewRow. The previous DataGridViewRow that matches the filters; or null if no row is found before startRow .

Throws:

Returns the previous DataGridViewRow before startIndex that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startIndex

The index of the row where the method should begin to look for the previous DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: DataGridViewRow. The previous DataGridViewRow that matches the filters; or null if no row is found before startIndex .

Throws:

Returns the index of the previous DataGridViewRow before startRow that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startRow

The row where the method should begin to look for the previous DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: Int32. The index of previous DataGridViewRow that matches the filters; or -1 if no row is found before startRow .

Throws:

Returns the index of the previous DataGridViewRow before startIndex that matches the includeFilter and excludeFilter .

ParameterTypeDescription

startIndex

The index of the row where the method should begin to look for the previous DataGridViewRow.

A bitwise combination of DataGridViewElementStates values.

A bitwise combination of DataGridViewElementStates values.

Returns: Int32. The index of the previous DataGridViewRow that matches the filters; or -1 if no row is found before startIndex .

Throws:

Returns the number of rows that match the includeFilter .

ParameterTypeDescription

includeFilter

A combination of the DataGridViewElementStates values for inclusion.

Returns: Int32. The number of rows that match the includeFilter .

Throws:

Returns the cumulative height of the DataGridViewRow objects that match the includeFilter .

ParameterTypeDescription

includeFilter

A bitwise combination of DataGridViewElementStates values.

Returns: Int32. The cumulative height of DataGridViewRow objects that match the includeFilter .

Throws:

Returns the state of the DataGridViewRow at the specified index.

ParameterTypeDescription

rowIndex

The index of the row.

Returns: DataGridViewElementStates. A combination of DataGridViewElementStates values indicating the state of the row.

Throws:

Returns the index of the given DataGridViewRow in the collection.

ParameterTypeDescription

row

The DataGridViewRow to return the index of.

Returns: Int32. The index of the given DataGridViewRow.

Inserts a DataGridViewRow into the collection at the specified position.

ParameterTypeDescription

index

The position at which to insert the DataGridViewRow.

Throws:

Inserts a DataGridViewRow into the collection at the specified position, and populates the cells with the specified objects.

ParameterTypeDescription

index

The position at which to insert the DataGridViewRow.

values

A variable number of objects that populate the cells of the new DataGridViewRow.

Throws:

Inserts the specified DataGridViewRow into the collection.

ParameterTypeDescription

index

The position at which to insert the row.

row

Throws:

Inserts the specified number of rows into the collection at the specified location.

ParameterTypeDescription

index

The position at which to insert the rows.

count

The number of rows to insert into the DataGridViewRowCollection.

Throws:

Inserts rows into the collection at the specified position.

ParameterTypeDescription

indexSource

The index of the DataGridViewRow on which to base the new rows.

indexDestination

The position at which to insert the rows.

count

The number of DataGridViewRow objects to add to the DataGridViewRowCollection.

Throws:

Inserts a new DataGridViewRow into the collection at the specified indexDestination , based on the DataGridViewRow at indexSource .

ParameterTypeDescription

indexSource

The index of the DataGridViewRow on which to base the new DataGridViewRow.

indexDestination

The position at which to insert the row.

Throws:

Inserts the DataGridViewRow objects into the collection at the specified position.

ParameterTypeDescription

index

The position at which to insert the rows.

newRows

An array of DataGridViewRow objects to add to the DataGridViewRowCollection.

Throws:

Removes the row from the collection.

ParameterTypeDescription

row

The row to remove from the DataGridViewRowCollection.

Throws:

Removes the DataGridViewRow at the specified position from the collection.

ParameterTypeDescription

index

The position of the row to remove.

Throws:

Events

CollectionChangeEventHandler Fired when the collection changes.

Last updated