Does anyone know how to programically clear the data from a form view using vb.net. I have so far come up with the following:

Code:
                Dim x
                For x = 0 To Me.Controls.Count - 1

                    'if it is a text box then clear it 
                    If TypeOf FormView7.Controls.Item(x) Is TextBox Then
                        Dim text As TextBox = FormView7.Controls.Item(x)
                        text.Text = ""
                    End If

                Next
But i get the error "Specified argument was out of the range of valid values.
Parameter name: index"