adding value from combo box into grid

-z-

New member
Joined
Nov 23, 2007
Messages
3
Programming Experience
Beginner
That the only code for my form.. and there is 2 pic that show what is the problem i having now...
i am using the dataset to drag and drop data into the form ...


VB.NET:
    Private Sub CallTimeBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CallTimeBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.CallTimeBindingSource.EndEdit()
        Me.CallTimeTableAdapter.Update(Me.EMP_OP_DataSet.CallTime)

    End Sub

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      
        'TODO: This line of code loads data into the 'EMP_OP_DataSet._Operator' table. You can move, or remove it, as needed.
        Me.OperatorTableAdapter.Fill(Me.EMP_OP_DataSet._Operator)
        'TODO: This line of code loads data into the 'EMP_OP_DataSet.Employee' table. You can move, or remove it, as needed.
        Me.EmployeeTableAdapter.Fill(Me.EMP_OP_DataSet.Employee)
        'TODO: This line of code loads data into the 'EMP_OP_DataSet.CallTime' table. You can move, or remove it, as needed.
        Me.CallTimeTableAdapter.Fill(Me.EMP_OP_DataSet.CallTime)

    End Sub


i need help !!.. when operator ID and Employee ID is selected from the combobox ...
i click the save button(available once i drop in the data grid or create a new save button)...
it will add into the grid where ... grid , operator ID and employee ID all are from different table...
pls advice .. thanks
 

Attachments

  • formafter.JPG
    formafter.JPG
    138.8 KB · Views: 18
  • formb4.JPG
    formb4.JPG
    159.1 KB · Views: 16
Last edited by a moderator:
hmm .. the question is ...

anyone knoe how to take the employeeID and the OperatorID value in a combobox .... and put this two value into a grid ( where grid, employeeID and OperatorID ... 3 of them are in different table.... something like ... grid = combobox1.text)
 
Back
Top