作者:VB.NET开发
项目:System.Dat
Private Sub FindValueInDataView(table As DataTable)
Dim view As New DataView(table)
view.Sort = "Customers"
' Find the customer named "John Smith".
Dim vals(1) As Object
vals(0)= "John"
vals(1) = "Smith"
Dim i As Integer = view.Find(vals)
Console.WriteLine(view(i))
End Sub
作者:VB.NET开发
项目:System.Dat
Private Sub FindValueInDataView(table As DataTable)
Dim view As New DataView(table)
view.Sort = "CustomerID"
' Find the customer named "DUMON" in the primary key column
Dim i As Integer = view.Find("DUMON")
Console.WriteLine(view(i))
End Sub