One very easy way is to use the DataTable's DefaultView and then just set
the .RowFilter property to that value- it will then be the only row or
row(s) in your dataview. You can also use the .Select to find the row but
that doesn't return an index, it returns the row. One easy workaround is to
create a Datacolumn in the datatable and set its AutoIncrement property to
true. That way each row will now have an associated and properly indexed
value corresponding to its position in the table. You can do a
DataTable.Select and then just look at that column in the datarow - There's
also a .Find method that works similarly.
http://www.knowdotnet.com/articles/dataviewspart2.html This may help with
filtering and finding data.
HTH,
Bill
--
W.G. Ryan MVP Windows - Embedded
Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups