I have the following code in the button_click event, but it does nothing
Expand|Select|Wrap|Line Numbers
- Dim idcount As ListViewItem
- Dim i As Int32
- Dim ei As New ListViewUpdateEventArgs(i)
- For Each idcount In ListView1.Items
- ei.NewValues("Name") = DirectCast(ListView1.Items.Item(i).FindControl("NameLabel"), TextBox).Text
- i = i + 1
- Next
I also tried another approach listed below with a light change, but with no results...
Expand|Select|Wrap|Line Numbers
- Dim idcount As ListViewItem
- Dim i As Int32
- Dim ei As New ListViewUpdateEventArgs(i)
- For Each idcount In ListView1.Items
- ListView1_ItemUpdating(i, ei) '<-----
- i = i + 1
- Next