Can anyone tell me how to use the DataRowCollection.Find Method on 3
primary keys, 2 of the keys are of the String type and the other is of
the DateTime type. I have tried the code below but get the following
error message .
An unhandled exception of type 'System.InvalidCastException' occurred
in system.data.dll
Additional information: Specified cast is not valid.
Dim dr As DataRow
Dim txt(2)as String
txt(0) = "30/07/05"
txt(1) = "FirstName"
txt(2) = "LastName"
dr = dtInfo.Rows.Find(txt)