public void SetLocations(IDColumn idColumn, string[] specificLocations) { string colName = GetIDColumn(idColumn); DataView dv = WebCommon.GetCenterList(BasePage.IntranetDB, Type); if (dv.Count > 0) { if (specificLocations != null && specificLocations.Length > 0) { dv.RowFilter = string.Format("{0} in ({1})", colName, string.Join(",", specificLocations)); } ddLocation.DataTextField = "Description"; ddLocation.DataValueField = colName; ddLocation.DataSource = dv; ddLocation.DataBind(); if (InsertInitialItem) { ddLocation.Items.Insert(0, new ListItem(gInitialItemText, InitialItemValue)); } } IDColumnUsed = idColumn; }