diff --git a/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonDataGridViewComboBoxCell.cs b/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonDataGridViewComboBoxCell.cs
index a7da54963..766dce78a 100644
--- a/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonDataGridViewComboBoxCell.cs
+++ b/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonDataGridViewComboBoxCell.cs
@@ -12,6 +12,8 @@
// ReSharper disable MemberCanBeInternal
+using System.ComponentModel;
+
namespace Krypton.Toolkit
{
///
@@ -21,7 +23,6 @@ public class KryptonDataGridViewComboBoxCell : DataGridViewTextBoxCell
{
#region Static Fields
[ThreadStatic]
- private static KryptonComboBox? _paintingComboBox;
private static readonly Type _defaultEditType = typeof(KryptonDataGridViewComboBoxEditingControl);
private static readonly Type _defaultValueType = typeof(string);
private static readonly Size _sizeLarge = new Size(10000, 10000);
@@ -37,7 +38,9 @@ public class KryptonDataGridViewComboBoxCell : DataGridViewTextBoxCell
private string _displayMember;
private string _valueMember;
private object? _dataSource;
-
+ private List
public KryptonDataGridViewComboBoxCell()
{
- // Create a thread specific KryptonComboBox control used for the painting of the non-edited cells
- if (_paintingComboBox == null)
- {
- _paintingComboBox = new KryptonComboBox();
- _paintingComboBox.SetLayoutDisplayPadding(new Padding(0, 1, 1, 0));
- _paintingComboBox.StateCommon.ComboBox.Border.Width = 0;
- _paintingComboBox.StateCommon.ComboBox.Border.Draw = InheritBool.False;
- }
+ _items = [];
+ _selectedItemText = string.Empty;
+ _initialSelectedTextSet = false;
_dropDownStyle = ComboBoxStyle.DropDown;
_maxDropDownItems = 8;
@@ -86,7 +84,7 @@ public override string ToString() =>
/// Gets the items in the combobox.
/// The items.
- public ComboBox.ObjectCollection Items => _paintingComboBox!.ComboBox.Items;
+ public List