DataView dv = DropDowns.GetDropDownItems(dropdownType, inspectionType, companyId);
dropdown.DisplayMember = "DropdownItem_DisplayName";//display name (dataview column name)
dropdown.ValueMember = "DropdownItem_Name";//value behind display name (dataview column name)
dropdown.DataSource = dv;
dv.Sort = "DropdownItem_DisplayName";
|