gridview中用NewSelectedIndex获取选中的ID值

 string id = GridView1.Rows[e.NewSelectedIndex].Cells[0].Text;
原文地址:https://www.cnblogs.com/QiuJL/p/4524335.html