protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { int choiceid = GridView1.GetNewValue <int>(e.RowIndex, 1); int pollid = Convert.ToInt32(Request.QueryString["pid"]); string displayText = GridView1.GetNewValue <string>(e.RowIndex, 2); int order = GridView1.GetNewValue <int>(e.RowIndex, 3); PollChoiceInfo choice = new PollChoiceInfo { Id = choiceid, DisplayText = displayText, PollId = pollid, Order = order }; Snitz.BLL.Polls.UpdatePollAnswer(choice); }