This documentation is archived and is not being maintained.

IBindingList.Find Method

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

[Visual Basic]
Function Find( _
   ByVal property As PropertyDescriptor, _
   ByVal key As Object _
) As Integer
int Find(
   PropertyDescriptor property,
 object key
int Find(
   PropertyDescriptor* property,
 Object* key
function Find(
   property : PropertyDescriptor,
 key : Object
) : int;


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

Return Value

The index of the row that has the given PropertyDescriptor.


Exception Type Condition
NotSupportedException This method is not supported.


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 SupportsSearching is true, otherwise this method throws a NotSupportedException.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IBindingList Interface | IBindingList Members | System.ComponentModel Namespace