独立按钮获取GridView 修改/删除 ID protected void ImageButton_Click(object sender, EventArgs e) { //根据获取的行数获取指定ID int rowIndex = ((GridViewRow) (((ImageButton)sender).NamingContainer)).RowIndex; string ID = GridView.DataKeys[rowIndex].Value.ToString(); } 序号列 protected void GridView_RowDataBound(object sende