Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 8 - 9
BSD 3-Clause "New" or "Revised" License
411 stars 62 forks source link

[Bug]: KryptonDataGridComboBoxCell properties have incorrect default values #1772

Closed giduac closed 2 months ago

giduac commented 2 months ago

Describe the bug

AutoCompleteMode and AutoCompleteSource have an incorrect default value. Probably the the properties have been copied... Both values will be replaced with the ones from KCombobox.

PR underway.

        /// <summary>
        /// The DropDownWidth property replicates the one from the KryptonComboBox control
        /// </summary>
        [DefaultValue(121)]
        public int DropDownWidth
        {
            get => _dropDownWidth;

            set
            {
                if (DropDownWidth != value)
                {
                    SetDropDownWidth(RowIndex, value);
                    OnCommonChange();
                }
            }
        }

        /// <summary>
        /// The AutoCompleteMode property replicates the one from the KryptonComboBox control
        /// </summary>
        [DefaultValue(121)]
        public AutoCompleteMode AutoCompleteMode
        {
            get => _autoCompleteMode;

            set
            {
                if (AutoCompleteMode != value)
                {
                    SetAutoCompleteMode(RowIndex, value);
                    OnCommonChange();
                }
            }
        }

        /// <summary>
        /// The AutoCompleteSource property replicates the one from the KryptonComboBox control
        /// </summary>
        [DefaultValue(121)]
        public AutoCompleteSource AutoCompleteSource
        {
            get => _autoCompleteSource;

            set
            {
                if (AutoCompleteSource != value)
                {
                    SetAutoCompleteSource(RowIndex, value);
                    OnCommonChange();
                }
            }
        }