This documentation is archived and is not being maintained.
DataGridViewSelectedRowCollection Class
Visual Studio 2010
Represents a collection of DataGridViewRow objects that are selected in a DataGridView.
System::Object
System::MarshalByRefObject
System.Windows.Forms::BaseCollection
System.Windows.Forms::DataGridViewSelectedRowCollection
System::MarshalByRefObject
System.Windows.Forms::BaseCollection
System.Windows.Forms::DataGridViewSelectedRowCollection
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The DataGridViewSelectedRowCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the total number of elements in the collection. (Inherited from BaseCollection.) |
![]() | IsReadOnly | Gets a value indicating whether the collection is read-only. (Inherited from BaseCollection.) |
![]() | IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized. (Inherited from BaseCollection.) |
![]() | Item | Gets the row at the specified index. |
![]() | List | Gets the list of elements contained in the BaseCollection instance. (Overrides BaseCollection::List.) |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the BaseCollection. (Inherited from BaseCollection.) |
| Name | Description | |
|---|---|---|
![]() | Clear | Infrastructure. Clears the collection. |
![]() | Contains | Determines whether the specified row is contained in the collection. |
![]() | CopyTo(Array, Int32) | Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. (Inherited from BaseCollection.) |
![]() | CopyTo(array<DataGridViewRow>, Int32) | Copies the elements of the collection to the specified array, starting at the specified index. |
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Gets the object that enables iterating through the members of the collection. (Inherited from BaseCollection.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | Insert | Infrastructure. Inserts a row into the collection at the specified position. |
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo | Infrastructure. Copies the elements of the collection to the specified array, starting at the specified index. |
![]() ![]() | ICollection::Count | Infrastructure. Gets the number of elements in the collection. |
![]() ![]() | ICollection::IsSynchronized | Infrastructure. Gets a value indicating whether access to the collection is synchronized (thread safe). |
![]() ![]() | ICollection::SyncRoot | Infrastructure. Gets an object that can be used to synchronize access to the collection. |
![]() ![]() | IEnumerable::GetEnumerator | Infrastructure. Returns an enumerator that can be used to iterate through the collection. |
![]() ![]() | IList::Add | Infrastructure. Implements the Add method. Always throws NotSupportedException. |
![]() ![]() | IList::Clear | Infrastructure. Implements the Clear method. Always throws NotSupportedException. |
![]() ![]() | IList::Contains | Infrastructure. Determines whether the specified value is contained in the collection. |
![]() ![]() | IList::IndexOf | Infrastructure. Returns the index of the specified element. |
![]() ![]() | IList::Insert | Infrastructure. Implements the Insert method. Always throws NotSupportedException. |
![]() ![]() | IList::IsFixedSize | Infrastructure. Gets a value indicating whether the collection has a fixed size. |
![]() ![]() | IList::IsReadOnly | Infrastructure. Gets a value indicating whether the collection is read-only. |
![]() ![]() | IList::Item | Infrastructure. Gets the element at the specified index. |
![]() ![]() | IList::Remove | Infrastructure. Implements the Remove method. Always throws NotSupportedException. |
![]() ![]() | IList::RemoveAt | Infrastructure. Implements the RemoveAt method. Always throws NotSupportedException. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

