コード例 #1
0
        protected internal override Control CreateControl(string name)
        {
            DropdownControl control = new DropdownControl(name, FieldType);

            control.ShowBlank         = ShowBlank;
            control.BlankKey          = BlankKey;
            control.BlankValue        = BlankValue;
            control.DataSource        = DataSource;
            control.KeyMember         = KeyMember;
            control.ValueMember       = ValueMember;
            control.ValueFormatString = ValueFormatString;

            return(control);
        }
コード例 #2
0
        public string Run(string name, object value, string className, bool showBlank, object dataSource, string keyMember, string valueMember, object blankKey, string blankValue, string valueFormatString)
        {
            DropdownControl dropdownControl = new DropdownControl(name);

            dropdownControl.Value             = value;
            dropdownControl.CssClass          = className;
            dropdownControl.DataSource        = dataSource;
            dropdownControl.ShowBlank         = showBlank;
            dropdownControl.KeyMember         = keyMember;
            dropdownControl.ValueMember       = valueMember;
            dropdownControl.BlankKey          = blankKey;
            dropdownControl.BlankValue        = blankValue;
            dropdownControl.ValueFormatString = valueFormatString;

            return(dropdownControl.Render(RootView));
        }