Created
September 19, 2012 11:45
-
-
Save martin0258/3749234 to your computer and use it in GitHub Desktop.
Get the datakey value of the selected row in GridView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) | |
{ | |
Console.WriteLine(((GridView)sender).SelectedValue.ToString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment