[sourcecode language="vb.net"]
Dim index As String = e.CommandArgument
Dim pk As String = GridView1.DataKeys(index).Value.ToString
[/sourcecode]
One thought on “How to get the DataKey Primary Key value from a GridView RowCommand Sub”
Comments are closed.
Nice brief and this fill someone in on helped me alot in my college assignement. Thanks you for your information.