I have this code that finds the a datakey in a gridview
The problem is that I have 2 datakeys in the gridview and I can't get the 2nd one..
The below code just accesses the first datakey but how do I access the 2nd?
Protected Sub GridView2_RowCommand(sender As Object, e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView2.RowCommand
Dim currentCommand As String = e.CommandName
Dim currentRowIndex As Integer = Int32.Parse(e.CommandArgument.ToString())
Dim EmailAdd As String = GridView2.DataKeys(currentRowIndex).Value