I have a Gridview Control which uses the built in Delete command.
I would like to use this Delete command to to not only delete a DB record so I am using the GridView1_RowCommand event like so:
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
If e.CommandName = "Delete" Then
Do some stuff
What I need to be able to do within this event is obtain the Record ID from the currently selected record that I am performing the Delete on from the Gridwiew which is situated within the first column (column 0).
Please anyone suggest how to acheive this?