ComboBox1.DataSource = ds.Tables("Table")
ComboBox1.DisplayMember = "Name"
ComboBox1.ValueMember = "ID"
msgbox(combobox1.text)when i run this, the message in the msgbox is "ID" not the value of the ID which i have selected..
it works when i remove one of it.. display/value member.. but i want to display the name and get the id..
please help me.. i just want to get the ID and add it to my database..

Sign In
Register
Help

MultiQuote