G
Guest
It seems that the DataView.Find differs from the DataRowCollection.Find
method. The latter searches the Primary Key of the table for the object
supplied as the "key" parameter. However, where the DataView.Find is
concerned, it seems that the Primary Key of the table is not the column
searched, rather, it is the column specified in the DataView.Sort member. So
far so good.
But, what happens with the DataView.Find(key()) flavor of this method. I
assume that it will again search the DataView.Sort member column, but what
happens when the Key is an array with more than one element? If I use dim
key(1) as Object, and then assign each element a value, does that mean that
the DataView.Sort member must be made up of 2 columns, seperated by a comma?
Michael
PS. I also noticed that the method return's -1 and not null when a row isn't
found.
method. The latter searches the Primary Key of the table for the object
supplied as the "key" parameter. However, where the DataView.Find is
concerned, it seems that the Primary Key of the table is not the column
searched, rather, it is the column specified in the DataView.Sort member. So
far so good.
But, what happens with the DataView.Find(key()) flavor of this method. I
assume that it will again search the DataView.Sort member column, but what
happens when the Key is an array with more than one element? If I use dim
key(1) as Object, and then assign each element a value, does that mean that
the DataView.Sort member must be made up of 2 columns, seperated by a comma?
Michael
PS. I also noticed that the method return's -1 and not null when a row isn't
found.