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);
        }
        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;
        }