DataGridViewCellCollection

Wisej.Web.DataGridViewCellCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents a collection of cells in a DataGridViewRow.

public class DataGridViewCellCollection : BaseCollection, IList, IList<DataGridViewCell>, ICollection<DataGridViewCell>, IEnumerable<DataGridViewCell>

Constructors

Initializes a new instance of the DataGridViewCellCollection class.

NameTypeDescription

row

The DataGridViewRow that owns the collection.

Properties

DataGridViewCell: Returns or sets the cell contained in the specified column .

Throws:

DataGridViewCell: Returns or sets the cell at the provided index location.

Throws:

DataGridViewCell: Returns or sets the cell in the column with the provided name.

Throws:

Methods

Adds a cell to the collection.

ParameterTypeDescription

cell

A DataGridViewCell to add to the collection.

Returns: Int32. The position in which to insert the new element.

Throws:

Adds an array of cells to the collection.

ParameterTypeDescription

cells

The array of DataGridViewCell objects to add to the collection.

Throws:

Adds an array of cells to the collection.

ParameterTypeDescription

cells

The array of DataGridViewCell objects to add to the collection.

Throws:

Clears all cells from the collection.

Throws:

Determines whether the specified cell is contained in the collection.

ParameterTypeDescription

cell

A DataGridViewCell to locate in the collection.

Returns: Boolean. true if cell is in the collection; otherwise, false.

Copies the entire collection of cells into an array at a specified location within the array.

ParameterTypeDescription

array

The destination array to which the contents will be copied.

index

The index of the element in array at which to start copying.

Returns the index of the specified cell.

ParameterTypeDescription

cell

The cell to locate in the collection.

Returns: Int32. The zero-based index of the value of cell parameter, if it is found in the collection; otherwise, -1.

Inserts a cell into the collection at the specified index.

ParameterTypeDescription

index

The zero-based index at which to place cell .

cell

The DataGridViewCell to insert.

Throws:

Removes the specified cell from the collection.

ParameterTypeDescription

cell

The DataGridViewCell to remove from the collection.

Throws:

Removes the cell at the specified index.

ParameterTypeDescription

index

The zero-based index of the DataGridViewCell to be removed.

Throws:

Events

CollectionChangeEventHandler Fired when the collection changes.

Last updated