I have a master\detail database with two tables, I have connected them in one dataset and made the relatioship,
I insert on the form one textbox with the databinding to the field of the master table and a datagridview to the datasource and datamember of the detail table.
I want to have a button to move to the next row of the master and to follow the datagrid to the details of the of the record of the textbox.
here is some code wich is not working.
Private Sub SetRowPos(ByVal intPos As Integer)
Me.BindingContext(DataSet81, "EPONIMIA").Position = intPos
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim intpos As New Int32
intpos = Me.BindingContext(DataSet81, "EPONIMIA").Position
intpos += 1
Catch errobj As Exception
MsgBox(errobj.Message & vbCrLf & errobj.StackTrace)