Listbox.Selected.item
I am trying to get the text of the currently selected item.
listBox1.DataSource = dataset.Tables["words"];
listBox1.DisplayMember = "words";
label1.Text = listBox1.SelectedItem.ToString()
When i call listBox1.SelectedItem.ToString() it returns: System.Data.DataRowView.
The display of the listbox is fine, but i dont want the type i want the text of the currently selected item.
I am new. please help.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

dip_2004_05142 reputationPosted Oct 10, 2003, 7:28 AM EDT