G
Guest
Ok, ill try again.....
It seems fairly simple.
I have two combo boxes in a datagrid. The datagrid is bound to a a table in
a dataset.
The two combo boxes are bound to a single data table in a different dataset.
One combo box is displaying the Employees payroll ID. The other is
displaying the Employees name.
The users are entering timesheet hours for employees. They want to be able
to select the employee by either payroll id, or employee name.
If they select a payroll id from the first combo box, I need the second
combo box to display the matching employee surname.
I cannot see anyway to do this.
I can only seem to get the selected index of the combo box being selected.
(by using the editing control event and casting the datagrid comboboxcolumn
to a combo box). However, I dont know how I can set the selected index of
the other combo box.
Can anyone help? (besides telling me to buy some third party control!)
thankyou
It seems fairly simple.
I have two combo boxes in a datagrid. The datagrid is bound to a a table in
a dataset.
The two combo boxes are bound to a single data table in a different dataset.
One combo box is displaying the Employees payroll ID. The other is
displaying the Employees name.
The users are entering timesheet hours for employees. They want to be able
to select the employee by either payroll id, or employee name.
If they select a payroll id from the first combo box, I need the second
combo box to display the matching employee surname.
I cannot see anyway to do this.
I can only seem to get the selected index of the combo box being selected.
(by using the editing control event and casting the datagrid comboboxcolumn
to a combo box). However, I dont know how I can set the selected index of
the other combo box.
Can anyone help? (besides telling me to buy some third party control!)
thankyou