protected void DropDownListAlignementQuestion_SelectedIndexChanged(object sender, EventArgs e) { Trace.Warn("DropDownListAlignementQuestion_SelectedIndexChanged"); DropDownListGridView ddl = ( DropDownListGridView )sender; int indexe = int.Parse(ddl.Valeur); Guid questionGuid = new Guid(GridViewQuestion.DataKeys[indexe].Value.ToString()); PollQuestion question = PollQuestion.GetQuestion(questionGuid); question.AlignementQuestion = ddl.SelectedValue; PollQuestion.UpdateAlignementQuestion(question); }