public DataGridComboBoxColumn() : base() { _source = null; _isEditing = false; _RowCount = -1; ColumnComboBox = new NoKeyUpCombo(); ColumnComboBox.DropDownStyle = ComboBoxStyle.DropDownList; ColumnComboBox.Leave += new EventHandler(LeaveComboBox); // ColumnComboBox.Enter += new EventHandler(ComboMadeCurrent); ColumnComboBox.SelectionChangeCommitted += new EventHandler(ComboStartEditing); }
public DataGridComboBoxColumn(DataGrid dgForms, DataTable xdt, string columnName) : base() { _source = null; _isEditing = false; _RowCount = -1; _columnName = columnName; ColumnComboBox = new NoKeyUpCombo(); ColumnComboBox.DropDownStyle = ComboBoxStyle.DropDownList; ColumnComboBox.Leave += new EventHandler(LeaveComboBox); // ColumnComboBox.Enter += new EventHandler(ComboMadeCurrent); ColumnComboBox.SelectionChangeCommitted += new EventHandler(ComboStartEditing); this.dgForms = dgForms; this.xdt = xdt; }