System.ComponentModel.IBindingList.Find Method

Returns the index of the row that has the given System.ComponentModel.PropertyDescriptor.

Syntax

public int Find (PropertyDescriptor property, object key)

Parameters

property
The System.ComponentModel.PropertyDescriptor to search on.
key
The value of the property parameter to search for.

Returns

The index of the row that has the given System.ComponentModel.PropertyDescriptor.

Remarks

This method will select the first row where the value of the property parameter equals the value of the key parameter.

This method is supported if IBindingList.SupportsSearching is true, otherwise this method throws a NotSupportedException.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0