vb System.Data.DataView.Find类(方法)实例源码

下面列出了vb System.Data.DataView.Find 类(方法)源码代码实例,从而了解它的用法。

作者: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


问题


面经


文章

微信
公众号

扫码关注公众号