Hi Michael,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that there is some misleading in the MSDN
documentation for DataView.Find method. If there is any misunderstanding,
please feel free to let me know.
Actually, DataView.Find accept values for the columns on which DataView is
actually sorted which is not always primary key columns. The overload for
DataView.Find(object[]) is used when multiple columns are used as sort
columns. The example in the MSDN document won't work. Here, I'm posting a
correct example:
DataView dv = new DataView(dt);
dv.Sort = "FirstName, LastName";
this.dataGrid1.DataSource = dv;
object[] s = {"Nancy", "Davolio"};
int i = dv.Find(s);
We have noticed this issue, and you can check it from the following link:
http://lab.msdn.microsoft.com/Produc...x?feedbackid=4
c26fdcd-1e3d-48a9-96b3-ef0b066b5861
This will be fixed soon. HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."