elianeasmar
Well-known member
- Joined
- Oct 3, 2013
- Messages
- 76
- Programming Experience
- Beginner
Hello guys i need your help urgently. I need to load data from sql into my form using binding context. i have written this.
and i have this form. the data should be in the textboxes and the combobox when i press the requery button.
But the data wont load.
But the only thing that happens when i press the requery button. is that i get the departmentID , and not the department Namee.
Can anyone help please.
Thank you
Private Sub cmdRequery_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRequery.Click DBRequery() Me.BindingContext(_DataSet.Tables(0)).CancelCurrentEdit() Me.BindingContext(_DataSet.Tables(0)).Position = 0 RefreshData(True) End Sub
and i have this form. the data should be in the textboxes and the combobox when i press the requery button.
But the data wont load.
But the only thing that happens when i press the requery button. is that i get the departmentID , and not the department Namee.
Can anyone help please.
Thank you