protected void gvItems_RowDeleting(object sender, GridViewDeleteEventArgs e) { NoName.NetShop.Vote.BLL.VoteItem ibll = new NoName.NetShop.Vote.BLL.VoteItem(); int itemId = Convert.ToInt32(gvItems.DataKeys[e.RowIndex].Values["ItemId"]); ibll.Delete(itemId); ShowVoteGroupInfo(int.Parse(lblGroupId.Text), int.Parse(lblVoteId.Text)); }