Users Pricing

forum

Home Forums Hot to get value in label of Multi Selected Listbox? – MindStick

Hot to get value in label of Multi Selected Listbox?

Samuel Fernandes 2064 21 Oct 2014
Hi

How to get listbox multiple selected values in label or string.
I have bind data from table in listbox then when i select multi values then this display in label or string
when i try get values in label then display System.Data.Dataview multi time
my code

  for (i = 0; i < lstcsuspectcode.SelectedItems.Count; i++)
  {

  label18.Text = label18.Text + " " + lstcsuspectcode.SelectedValue;
  
  }

2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md