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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

combobox

Thread ID:

Created:

Platform:

Replies:

8833 Nov 21,2003 07:02 PM UTC WinForms 0
loading
Tags: FAQ
suda
Asked On November 21, 2003 07:02 PM UTC

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

CONFIRMATION

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.

Warning Icon 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.Close Icon

;