Back in my vb.net days, I had a gridview, that when a user clicked a select button in a templatefield, I could determine the row that the user selected.  Trying to do the same in C#, but am lost in translation somewhere as it throws this error when trying to get the value.    This is what I have, but it throws an error.  Any suggestions? 
 
protected void btnSelectLP_Click(object sender, System.EventArgs e) { Button btn = sender as Button; hdnID.Value = Convert.ToInt32[gvInProgress.DataKeys(((GridViewRow)btn.NamingContainer).RowIndex).Values("ID")]; }  
...

Go to the complete details ...