コード例 #1
0
        protected override ICollection CreateColumns(PagedDataSource dataSource, bool useDataSource)
        {
            ICollection columns = base.CreateColumns(dataSource, useDataSource);

            if (ShowCheckBox)
            {
                ArrayList list = new ArrayList(columns);
                RsCheckBoxTemplateField column = new RsCheckBoxTemplateField();
                list.Insert(0, column);

                columns = list;
            }

            if (ShowRadioButton)
            {
                ArrayList list = new ArrayList(columns);
                RsRadioButtonTemplateField column = new RsRadioButtonTemplateField(this);
                list.Insert(0, column);

                columns = list;
            }


            return(columns);
        }
コード例 #2
0
        protected override ICollection CreateColumns(PagedDataSource dataSource, bool useDataSource)
        {
            ICollection columns = base.CreateColumns(dataSource, useDataSource);

            if (ShowCheckBox)
            {
                ArrayList list = new ArrayList(columns);
                RsCheckBoxTemplateField column = new RsCheckBoxTemplateField();
                list.Insert(0, column);

                columns = list;
            }

            if (ShowRadioButton)
            {
                ArrayList list = new ArrayList(columns);
                RsRadioButtonTemplateField column = new RsRadioButtonTemplateField(this);
                list.Insert(0, column);

                columns = list;
            }


            return columns;
        }