public AnswersRowChangeEvent(QuestionsAnswersData.AnswersRow row, DataRowAction action)
 {
     this.eventRow = row;
     this.eventAction = action;
 }
 public void AddAnswersRow(QuestionsAnswersData.AnswersRow row)
 {
     base.Rows.Add(row);
 }
 public void RemoveAnswersRow(QuestionsAnswersData.AnswersRow row)
 {
     base.Rows.Remove(row);
 }
        /// <summary>
        /// Returns all question and all their answers from the given survey
        /// </summary>
        /// <param name="surveyId">Survey id from which you want to retrieve the questions and answers</param>
        /// <returns>A question object collection with all answers</returns>
        public QuestionsAnswersData GetQuestionsAnswers(int surveyId)
        {
            QuestionsAnswersData dataSet = new QuestionsAnswersData();

            ArrayList commandParameters = new ArrayList();
            {
                commandParameters.Add(new SqlParameter("@SurveyId", surveyId).SqlValue);
            } 

            DbConnection.db.LoadDataSet("vts_spQuestionsAnswersGetForSurvey", dataSet, new string[] { "Questions", "Answers" }, commandParameters.ToArray());
            return dataSet;
        }