I want to display two fields which are from a database in a DropDownList. How can I do that?
Printable View
I want to display two fields which are from a database in a DropDownList. How can I do that?
If you use DataReader You Can Fill like that:
while Reader.Read
Code:Combobox.Item.Add(Reader.GetValue(0) & " " & Reader.GetString(1))
Next
no, i am using this approch...
Code:Comp.dapSSDHardwareList.Fill(dstSSDHardwareList)
ddlHardwareID.DataBind()
With Kind Permissions from Edneeis;
Edneeis has developed a control for this. See the attachment.
For more infor refere to the post in page 3 with subject of 'display 2 fields in a combobox'