natethegreat1977
asked on
ListView CheckBox Value
I am trying to get the value of an ID("ToppingID") from a ListView in in VB.NET and add it to a list.
I can do it with the GridView like this:
How do I do the same thing only with a list view?
What do I use instead of rowItem and RowIndex??
I can do it with the GridView like this:
Dim chk As CheckBox
Dim list As New List(Of String)
For Each rowItem As GridViewRow In GridView1.Rows
chk = CType(rowItem.Cells(0).FindControl("CheckBox2"), CheckBox)
If chk.Checked Then
list.Add(GridView1.DataKeys(rowItem.RowIndex)("ToppingID").ToString())
End If
Next
How do I do the same thing only with a list view?
What do I use instead of rowItem and RowIndex??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.