I am trying to get the value of the selected item in the listbox using the code below, but it is always returning null string.
DataSet ds = searchforPrice(Co
If you want to retrieve the display text of the item, use the GetItemText method:
string text = listBox1.GetItemText(listBox1.SelectedItem);