scm0sml
asked on
getting the display member from a selected item in my listbox
Hi,
I have the following code:
For i = 0 To lstLineFinder.Items.Count - 1
dr = _tblSelectedLines.NewRow
dr.Item("Line ID") = lstLineFinder.Items.Item(i ).ToString
_tblSelectedLines.Rows.Add (dr)
Next
I am binding the datatable to my gridview but that field is being displayed as:
"System.Data.DataRowView"
What am I doing wrong?
I need the value of the selected item?!
I have the following code:
For i = 0 To lstLineFinder.Items.Count - 1
dr = _tblSelectedLines.NewRow
dr.Item("Line ID") = lstLineFinder.Items.Item(i
_tblSelectedLines.Rows.Add
Next
I am binding the datatable to my gridview but that field is being displayed as:
"System.Data.DataRowView"
What am I doing wrong?
I need the value of the selected item?!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.