Originariamente inviato da pietro09
non ho gli appunti con me, prova se va

codice:
    Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
        If e.CommandName = "comando" AndAlso TypeOf (e.CommandSource) Is ImageButton Then
            Dim ib As ImageButton = DirectCast(e.CommandSource, ImageButton)
            PrintLn(ib.CommandArgument)
        End If
    End Sub
Grazie mille, io sto lavorando in C# ma ho capito la tua idea, provo subito