public override PropertyPage CreateNew(int idx = 0)
        {
            PropertyPage p = new TextboxPropertyPage();

            p.Properties["ID"] = "textBox" + idx;
            return(p);
        }
        GridColumn CreateColumn(string name, string label, string field)
        {
            GridColumn col = new GridColumn();

            col.ColumnName = name;
            col.ColumnText = label;
            col.Field      = field;
            TextboxPropertyPage page = new TextboxPropertyPage();

            col.PropertyPage = page;
            return(col);
        }
        private void btnAddColumn_Click(object sender, EventArgs e)
        {
            int        r   = grid.Rows.Count;
            GridColumn col = new GridColumn();

            col.ColumnName = "col" + r;
            col.ColumnText = "col" + r;
            PropertyPage pg = new TextboxPropertyPage();

            pg.Properties["ID"] = "col" + r + "Txt";
            col.PropertyPage    = pg;

            AddGridColumn(col);
        }
        public PropertyPage CreatePropertyPage()
        {
            PropertyPage page     = null;
            string       elemType = this.Element.ElementType;

            if (elemType == Settings.Default.CHECKBOXGROUP)
            {
                page = new CheckboxPropertyPage();
            }
            else if (elemType == Settings.Default.DATETIME)
            {
                page = new DateTimePropertyPage();
            }
            else if (elemType == Settings.Default.RADIOGROUP)
            {
                page = new RadioGroupPropertyPage();
            }
            else if (elemType == Settings.Default.SELECTBOX)
            {
                page = new SelectBoxPropertyPage();
            }
            else if (elemType == Settings.Default.GRID)
            {
                page = new GridPropertyPage();
            }
            else if (elemType == Settings.Default.TABPAGES)
            {
                page = new TabPagesPropertyPage();
            }
            else if (elemType == Settings.Default.TEXTAREA)
            {
                page = new TextareaPropertyPage();
            }
            else if (elemType == Settings.Default.TEXTBOX)
            {
                page = new TextboxPropertyPage();
            }
            else if (elemType == Settings.Default.FILEUPLOAD)
            {
                page = new FileUploadPropertyPage();
            }
            else if (elemType == Settings.Default.BUTTON)
            {
                page = new ButtonPropertyPage();
            }

            return(page);
        }