DataSet databinding problem

Drewan

New member
Joined
Aug 26, 2009
Messages
1
Programming Experience
1-3
Im trying to iterate through the contents of a datatable in my dataset. But i cant get seem to view the contents that aren't in the first row.
VB.NET:
ds = art.get_dataset()
'set up databinding. Using artist table dataset
txtFirstName.DataBindings.Add("text", ds.Tables("open_records"), "FirstName")
txtLastName.DataBindings.Add("text", ds.Tables(0), "LastName")
txtDOB.DataBindings.Add("text", ds.Tables(0), "DOB")
txtAddress.DataBindings.Add("text", ds.Tables(0), "Address")
txtCity.DataBindings.Add("text", ds.Tables(0), "City")
txtPostCode.DataBindings.Add("text", ds.Tables(0), "PostCode")
txtPhone.DataBindings.Add("text", ds.Tables(0), "Phone")
txtEmail.DataBindings.Add("text", ds.Tables(0), "Email")

basicly I want to be able to click a button for example "next" and then it will display the next set of data in my dataset.

Help would be greatly appreciated. Thankyou
 
Last edited by a moderator:

Latest posts

Back
Top