Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to delete one item in a combobox. Its being loaded through its display member. Below is a copy of the code:

 

ComboBox4.DataSource = Sqlds.Tables("dsmain")

ComboBox4.DisplayMember = Sqlds.Tables("dsmain").Columns("Listname").ToString

ComboBox4.ValueMember = Sqlds.Tables("dsmain").Columns("PtProgListId").ToString

 

 

I want to delete the first item in the combo box, but no matter what I try it will not work. I have tried deleting it by using the item remove at the '0' index but it is not working. Any help would greatly be appreciated.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...