find control inside gridview
Insert the following code on SelectedIndexChanged event of the gridview controlL:
Dim myRow As GridViewRow = myGridView.SelectedRow
Dim myTextBox1 As TextBox = CType(myRow.FindControl("myTextBox1"), TextBox)
Dim myTextBox2 As TextBox = CType(myRow.FindControl("myTextBox2"), TextBox)
If myTextBox1.Text = "" And myTextBox2.Text = "" Then
Exit Sub
Else
End If