Seems like e.Item.Index .....
Specifically I forgot, you can try this
The system will automatically generate
But you have to set the primary key DataKeyFiled when binding data
Response.Write (this.GridView1.DataKeys [e.Row.RowIndex] [0] .ToString ());
I tried it with this, but it appeared
"System.Web.UI.WebControls.GridViewEditEventArgs" does not contain the definition of "Row"
mistake.
Do you need to define something?