Export (0) Print
Expand All

DataGridViewRowCollection.Contains Method

Determines whether the specified DataGridViewRow is in the collection.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual bool Contains(
	DataGridViewRow dataGridViewRow


Type: System.Windows.Forms.DataGridViewRow

The DataGridViewRow to locate in the DataGridViewRowCollection.

Return Value

Type: System.Boolean
true if the DataGridViewRow is in the DataGridViewRowCollection; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft