Dataset - Incremental Search

M

Marcin Stawarz

Hi!

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

Thx in advance
Dexter
 
K

Ken Tucker

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top