protected void Fetch(SafeDataReader sdr)
        {
            this.RaiseListChangedEvents = false;
            this.IsReadOnly             = false;
            while (sdr.Read())
            {
                this.Add(ROQuestionnaireGroupAnswerResult.GetROQuestionnaireGroupAnswerResult(sdr));
            }
            this.IsReadOnly             = true;
            this.RaiseListChangedEvents = true;

            ROQuestionnaireGroupAnswerResult parent = null;

            if (sdr.NextResult())
            {
                while (sdr.Read())
                {
                    if (parent == null || parent.QuestionnaireGroupID != sdr.GetInt32(1))
                    {
                        parent = this.GetItem(sdr.GetInt32(1));
                    }
                    parent.ROQuestionnaireAnswerResultList.RaiseListChangedEvents = false;
                    parent.ROQuestionnaireAnswerResultList.Add(ROQuestionnaireAnswerResult.GetROQuestionnaireAnswerResult(sdr));
                    parent.ROQuestionnaireAnswerResultList.RaiseListChangedEvents = true;
                }
            }
        }
        public ROQuestionnaireAnswerResult GetROQuestionnaireAnswerResult(int QuestionnaireAnswerResultID)
        {
            ROQuestionnaireAnswerResult obj = null;

            foreach (ROQuestionnaireGroupAnswerResult parent in this)
            {
                obj = parent.ROQuestionnaireAnswerResultList.GetItem(QuestionnaireAnswerResultID);
                if (obj != null)
                {
                    return(obj);
                }
            }
            return(null);
        }