productname as display member
productid as valuemember
ComboBox.DropdownStyle = DropDownList; ComboBox.Sorted = true
datatable
productid
productname
ComboBox.DataSource = datatable ComboBox.DataValueField = productid ComboBox.DataTextField = productname
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)