DataGridViewChildRowCollection
Wisej.Web.DataGridViewChildRowCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a collection of DataGridViewRow objects that are childre of another DataGridViewRow.
Properties
Item(index)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
DataGridViewRow: Returns the row at the specified index.
Throws:
ArgumentOutOfRangeException index is less than 0; or index is equal to or greater than the number of rows in the collection.
Methods
Contains(row)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
Determines whether the specified row is contained in the collection.
Parameter | Type | Description |
---|---|---|
row | The DataGridViewRow to locate in the DataGridViewSelectedRowCollection. |
Returns: Boolean. true if row is in the collection; otherwise, false.
CopyTo(array, index)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
Copies the elements of the collection to the specified array, starting at the specified index.
Parameter | Type | Description |
---|---|---|
array | The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing. | |
index | The zero-based index in the array at which copying begins. |
Throws:
ArgumentNullException array is null.
ArgumentOutOfRangeException index is less than zero.
ArgumentException array is multidimensional; or the number of elements in the DataGridViewCellCollection is greater than the available space from index to the end of array .
InvalidCastException The DataGridViewCellCollection cannot be cast automatically to the type of array .
IndexOf(row)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2194374196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVxzkjZGSCpOtYHlmOePS%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=70041fd7&sv=1)
Returns the index of the specified element.
Parameter | Type | Description |
---|---|---|
row | The DataGridViewRow to locate in the collection. |
Returns: Int32. The zero-based index of the row parameter if it is found in the collection; otherwise, -1.
Last updated