search record in a table

H

HS1

Hello

To present (and manipulate) data in a table, I use an DataGrid and a DataSet
"ds"

DataGrid1.DataSource = ds

However, to search a record in this DataGrid, I have to use DataView "dv"

DataGrid1.DataSource = dv
int = dv.Find (.......)

Can I use only one of them for both searching and manipulating data for a
table

Thank you very much
Best regards
S.Hoa
 
C

Cor Ligthert

S. Hoa,

I think that the most easiest way is to get your row is to create another
(extra) dataview.

A dataview is just a filter on your table.

There is no dataview find, because that belongs to the datarowcollection.

Use on that other dataview the rowfilter what is very easy to use. Possible
is as well the datatable.select. Beneath in another message I have send the
links of explanations for all those to somebody else.

http://groups.google.com/[email protected]

I hope this helps?

Cor
 
F

Frank

Cor, I think you are mistaken. A dataview has a find method, it works on the
sorted column(s).
Frank
 

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