Hi I can find the datarow I want like so
VB Code:
Dim pkey(0) As DataColumn pkey(0) = ds.Tables("ContactsCom").Columns(0) ds.Tables("ContactsCom").PrimaryKey = pkey Dim foundRow As DataRow Dim findTheseVals(0) As Object findTheseVals(0) = 11 foundRow = ds.Tables("ContactsCom").Rows.Find(findTheseVals) If Not (foundRow Is Nothing) Then MsgBox(foundRow(1).ToString()) End If
A simple question but how do I move to that datarow in the datatable, so all the bound controls show the value I have just found.
eg ds.Tables("ContactsCom").Move(11)




Reply With Quote