protected void gvList_RowDeleting(object sender, GridViewDeleteEventArgs e) { GridView gv = (GridView)sender; Int32 _id = (int)gv.DataKeys[e.RowIndex].Value; BllProxySurveyQuestion.SetSurveyQuestion(surveyId, _id, false); setSurveyQuestions(surveyId); this.showTextMessage("Question has been removed"); e.Cancel = true; }
public void UcDataBind() { SurveyDS.SurveyQuestionDSDataTable dt = BllProxySurveyQuestion.GetAllSurveyQuestions(surveyId); objectdatasourceList.SelectParameters.Clear(); objectdatasourceList.SelectParameters.Add("survey_id", surveyId.ToString()); gvList.Sort(sortExpression, sortDirection); if (dt.Rows.Count == 0) { this.showErrorMessage("There are no questions available!"); } }