I have a datagridview that has five columns and the first one is a dropdownbox. I am trying to make the value of the dropdownbox determine the value of the second column (the first & last name will be used to get the employee's position to populate the second column).
How do I set up an selectedindexchanged event in a datagrid?
Here is my code to load the dropDownBox
CODE
Dim emp_array As New ArrayList
emp_array = Employee.GetAll
Dim i As Integer = 0
If emp_array.Count > 0 Then
For Each employee In emp_array
aEmp = emp_array(i)
Me.Column1.Items.Add(aEmp.GetFirstName & " " & aEmp.GetLastName)
i = i + 1
Next
End If
This post has been edited by deere2007: 26 Feb, 2008 - 09:24 AM