I have to populate the combobox with both text and value. The datasource is a SqlDataReader.

I have used the following code.

cboInst.DataSource = SetInstRec
cboInst.DisplayMember = "ShortName"
cboInst.ValueMember = "Register"

Where 'SetInstRec' is an instace of SqlDataReader. While running this code I am getting the following exception.

"complex databinding accepts as a datasource either in Ilist or IListSource"