Dataset - Incremental Search

  • Thread starter Thread starter Marcin Stawarz
  • Start date Start date
M

Marcin Stawarz

Hi!

Is there any possibility to prepare simple incremental search with
System.Data.DataSet using sort column?

Thx in advance
Dexter
 
Hi,

Create a dataview from the table. The dataview.find method will
return the row number of the first record base on your sort.

dim dv as new dataview = New DataView(ds.tables(0))
dv.Sort = "Cusomers"
' Find the customer named "John Smith".
vals(0)= "John"
vals(1) = "Smith"
dim i as integer = dv.Find(vals)

Ken
 
Back
Top