示例#1
0
        /// <summary>
        /// Add a new detail to the subreport
        /// </summary>
        /// <returns></returns>
        public Section AddDetail()
        {
            Section sec = CreateSection();

            sec.SectionType = SectionType.Detail;
            if (DetailCount > 0)
            {
                Sections.Insert(FirstDetail, sec);
            }
            else
            {
                Sections.Add(sec);
            }
            return(sec);
        }