Listbox - Remove item


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. for (int i = 0; i < MyListBox.Items.Count; i++)
  2. {
  3. if (MyListBox.Items[i].Selected)
  4. {
  5. MyListBox.Items.Remove(MyListBox.Items[i]);
  6.  
  7. }
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.