First, make sure the ItemCommand event is actually firing.
Write a simple string to the page to test:
Code:
Private Sub dgConsultants_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgConsultants.ItemCommand
Response.Write("ItemCommand")
End Sub
If that is working then loop through all the cells printing them out:
Code:
Private Sub dgConsultants_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgConsultants.ItemCommand
For i As Integer = 0 To e.Item.Cells.Count - 1
Response.Write("Cell " + i.ToString() + " = " + e.Item.Cells(i).Text + "<BR>")
Next
End Sub
Then you know what cell index you need.