Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In VB6 I can actually find a record in the recordset like this:

 

recordset.find "ColumnID = '1' "

 

but how can I do thid in VB.net??

Posted

There is also a Find method on the DataView

Private Sub FindValueInDataView(t As DataTable)
  Dim dv As DataView
  Dim i As Integer
  dv = New DataView(t)
  dv.Sort = "CusomerID"
  ' Find the customer named "DUMON" in the primary key column
  i = dv.Find("DUMON")
  Console.WriteLine(dv(i))
End Sub

 

John

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...