DataGridViewSelectedRowCollection

Wisej.Web.DataGridViewSelectedRowCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents a collection of DataGridViewRow objects that are selected in a DataGridView.

public class DataGridViewSelectedRowCollection : BaseCollection, IList, IList<DataGridViewRow>, ICollection<DataGridViewRow>, IEnumerable<DataGridViewRow>

Properties

Count

Int32: Returns the number of elements in the collection.

Item(index)

DataGridViewRow: Returns the row at the specified index.

Throws:

Methods

Contains(row)

Determines whether the specified row is contained in the collection.

ParameterTypeDescription

row

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

CopyTo(array, index)

Copies the elements of the collection to the specified array, starting at the specified index.

ParameterTypeDescription

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:

IndexOf(row)

Returns the index of the specified element.

ParameterTypeDescription

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