I'm trying to access controls inside a Gridview. It does not like this line:
Dim repeater As Repeater = GridView1.SelectedRow.Find
I suppose because it's not a selected row. What should it be? Here's the entire code...
Protected Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click
For Each GridViewRow In GridView1.Rows
Dim repeater As Repeater = GridView1.SelectedRow.FindControl("Repeater1")
For Each item In repeater.Items
Dim separator As TextBox = item.findcontrol("tbSeparator")
Dim sepList As ListBox = item.findcontrol("lbSeparator")
If sepList.Items.Contains(item.separator.Text) Then
How do I access the controls inside the GridView Row?