ComponentOne DataObjects for .NET
Find(Object) Method

C1.Data.2 Assembly > C1.Data Namespace > C1DataRowCollection Class > Find Method : Find(Object) Method
The primary key value of the row to find.
Gets the row specified by the primary key value.
Syntax
'Declaration
 
Public Overloads Function Find( _
   ByVal key As System.Object _
) As C1DataRow
public C1DataRow Find( 
   System.object key
)

Parameters

key
The primary key value of the row to find.

Return Value

The C1DataRow object.
Remarks
This method returns the C1DataRow object containing the primary key values specified; otherwise a null value if the primary key values do not exist in the C1DataRowCollection.

To use the Find method, the C1DataTable object must have at least one field designated as a primary key field, see PrimaryKey property.

See Also

Reference

C1DataRowCollection Class
C1DataRowCollection Members
Overload List
C1DataRowCollection Class