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