Groups | Blog | Home
all groups > vb.net data > march 2005 >

vb.net data : Datatable Question


<Edmond>
3/15/2005 10:39:19 AM
Hi, I made a dataset and datatable and append some record already. My
question is how to find specific record in this datatable. for example:

Tablename : "PO"
Fields - Code, Description, name ...etc

record: 01010125, ABC, ABC
04010050, EFG, EFG
19010008, XYZ, XYZ

If I would like to find a record that the code is 04010050. How to do it?
Can datatable have index which can help to seek record? Otherwise, is it
mean need to use For ... Loop to search it ?

Thanks,
Edmond

<Edmond>
3/15/2005 1:02:51 PM
thxnks

"Fireface" <news-i-dont-like-spam@carthew.net> ¦b¶l¥ó
news:u8K$f7QKFHA.484@TK2MSFTNGP15.phx.gbl ¤¤¼¶¼g...
[quoted text, click to view]

Fireface
3/15/2005 1:26:49 PM
Read up in MSDN about Dataviews Edmond, or try the DataTable.Select method.

Grant.

AddThis Social Bookmark Button