I have a drop down list control on my web page. I have bind the datatable to the dropdownlist control as follows -
lstDepartment.DataTextField = \"Department
Assuming that the DropDownList control in the other table also contains DepartmentName and DepartmentID:
lstDepartment.ClearSelection(); foreach (var item in lstDepartment.Items) { if (item.Value == otherDropDownList.SelectedValue) { item.Selected = true; } }