GridView

GridViewRow row = (sender as ImageButton).NamingContainer as GridViewRow;
 int id = int.Parse(this.gvArticlesList.Rows[row.RowIndex].Cells[0].Text);

你可能感兴趣的:(GridView)