I'm not sure if this will answer you question but here is a sample Datagrild ItemCommand Rountine I use:
VB Code:
Private Sub dgTerms_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgTerms.ItemCommand
Select Case e.CommandSource.text
Case "Delete"
Dim cn As ADODB.Connection
Dim sSQL As String
sSQL = "DELETE From tblBaseRent Where ID = " & e.Item.Cells(10).Text
cn = New ADODB.Connection()
cn.Open(Session("CN"))
cn.Execute(sSQL)
cn.Close()
BindData()
End Select
End Sub