Wisej.Web.DataGridViewCellCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a collection of cells in a DataGridViewRow.
Initializes a new instance of the class.
: Returns or sets the cell contained in the specified column .
Throws:
The specified value when setting this property is null; or column is null.
The specified cell when setting this property already belongs to a control, or the specified cell when setting this property already belongs to a
column is null.
: Returns or sets the cell at the provided index location.
Throws:
The specified value when setting this property is null.
The specified cell when setting this property already belongs to a control, or the specified cell when setting this property already belongs to a .
index is less than 0 or index is equal to or greater than the number of cells in the collection.
: Returns or sets the cell in the column with the provided name.
Throws:
columnName does not match the name of any columns in the control.
The specified value when setting this property is null; or columnName is null.
The specified cell when setting this property already belongs to a control, or the specified cell when setting this property already belongs to a .
: Returns the collection.
Adds a cell to the collection.
Returns: . The position in which to insert the new element.
Throws:
The row that owns this already belongs to a control, or cell already belongs to a .
Adds an array of cells to the collection.
Throws:
cells is null.
The row that owns this already belongs to a control, or at least one value in cells is null, or at least one cell in cells already belongs to a , or at least two values in cells are references to the same .
Adds an array of cells to the collection.
Throws:
cells is null.
The row that owns this already belongs to a control, or at least one value in cells is null, or at least one cell in cells already belongs to a , or at least two values in cells are references to the same .
Clears all cells from the collection.
Throws:
The row that owns this already belongs to a control.
Determines whether the specified cell is contained in the collection.
Returns: . 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.
Returns the index of the specified cell.
Returns: . 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.
Throws:
The row that owns this already belongs to a control, or cell already belongs to a .
Fires the event.
Removes the specified cell from the collection.
Throws:
The row that owns this already belongs to a control.
cell could not be found in the collection.
Removes the cell at the specified index.
Throws:
The row that owns this already belongs to a control.
Fired when the collection changes.
ArgumentException The specified column does not belong to the same DataGridView that owns the cells.
ArgumentOutOfRangeException The index of the specified column is less than 0 or is equal to or greater than the number of cells in the collection.
row
The DataGridViewRow that owns the collection.
cell
A DataGridViewCell to add to the collection.
cells
The array of DataGridViewCell objects to add to the collection.
cells
The array of DataGridViewCell objects to add to the collection.
cell
A DataGridViewCell to locate in the collection.
array
The destination array to which the contents will be copied.
index
The index of the element in array at which to start copying.
cell
The cell to locate in the collection.
index
The zero-based index at which to place cell .
cell
The DataGridViewCell to insert.
action
One of CollectionChangeAction indicating the reason the collection has changed.
element
The element that was added or removed from the collection, or null.
cell
The DataGridViewCell to remove from the collection.
index
The zero-based index of the DataGridViewCell to be removed.
Public Class DataGridViewCellCollection
Inherits BaseCollection
Implements IList, IList(Of DataGridViewCell), ICollection(Of DataGridViewCell), IEnumerable(Of DataGridViewCell)public class DataGridViewCellCollection : BaseCollection, IList, IList<DataGridViewCell>, ICollection<DataGridViewCell>, IEnumerable<DataGridViewCell>