lester Posted May 30, 2003 Posted May 30, 2003 Hi, Can someone pls let me know how can I find and filter records in ADO.net?? TIA. Quote
JIMcFadyen Posted May 30, 2003 Posted May 30, 2003 At what point do you want to filter the records? There is a property on the DataView called RowFilter that does just that. John Quote
lester Posted May 30, 2003 Author Posted May 30, 2003 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?? Quote
JIMcFadyen Posted June 2, 2003 Posted June 2, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.