I am trying to pull the selected values from a listbox. Seems simple on the surface. There are several examples referring to the following:
When I run this code, I see the following: "Selected Item is: System.Data.DataRowView"
I'm not sure how to access the actual index or value? I see that there is an array attached: 0 is index and position 1 is value. I need 0 but I don't know how to pull it.
Thanks,
Dave
C#:
foreach (var selecteditem in listBoxDocStatus.SelectedItems) {
Debug.WriteLine("Selected Item is: " + selecteditem.ToString());
}
When I run this code, I see the following: "Selected Item is: System.Data.DataRowView"
I'm not sure how to access the actual index or value? I see that there is an array attached: 0 is index and position 1 is value. I need 0 but I don't know how to pull it.
Thanks,
Dave