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.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:




8833 Nov 21,2003 02:02 PM Windows Forms 0
Tags: FAQ
Asked On November 21, 2003 02:02 PM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.