Link to home
Start Free TrialLog in
Avatar of scm0sml
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?!
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial