Protected Sub GridView1_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
'TO DO: make script a global variable
Dim script = "document.getElementByID('" & cans.ClientID & "').click();"
e.Row.Attributes.Add("onclick", script)
End If
End Sub
Protected Sub cans_Click(sender As Object, e As System.EventArgs) Handles cans.Click
GridView1.SelectedIndex = -1
End Sub