The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft