We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

combobox

I am filling data as follows. Dim list As New DataTable() list.Columns.Add(New DataColumn("Display", GetType(String))) list.Columns.Add(New DataColumn("Id", GetType(Integer))) list.Rows.Add(list.NewRow()) list.Rows.Add(list.NewRow()) list.Rows.Add(list.NewRow()) list.Rows(0)(0) = "one" ' list.Rows(0)(1) = 1 ' list.Rows(1)(0) = "two" ' list.Rows(1)(1) = 2 ' list.Rows(2)(0) = "three" ' list.Rows(2)(1) = 3 ' comboBox1.DataSource = list comboBox1.DisplayMember = "Display" comboBox1.ValueMember = "Id" I want to deselect the values in the combo, I am using selectindex = -1 but it is nopt working it is displaying the 1 st record To select I am supposed to do 2 times selectindex = -1 . I am doing anything wrong. Please give me a solution for this

Loader.
Live Chat Icon For mobile
Up arrow icon