something=((DataRowView)listBox1.SelectedItem).Row.ItemArray[0].ToString();
something = listBox1.SelectedValue.ToString();
ListItem
DataRowView
NullReferenceException
SelectedValue
null
For the difference between SelectedValue and SelectedItem, you can read this link: http://bea.stollnitz.com/blog/?p=9
SelectedItem
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)