Information
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.
This topic has not yet been rated - Rate this topic

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
[C#]
int Find(
   PropertyDescriptor property,
 object key
);
[C++]
int Find(
   PropertyDescriptor* property,
 Object* key
);
[JScript]
function Find(
   property : PropertyDescriptor,
 key : Object
) : int;

Parameters

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

Return Value

The index of the row that has the given PropertyDescriptor.

Exceptions

Exception Type Condition
NotSupportedException This method is not supported.

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

Requirements

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.