BinaryTreeListViewComboBoxCell
The cell of a BinaryComboBoxColumn: a combo box cell whose editor is a BinaryTextComboBox.
public class BinaryTreeListViewComboBoxCell : DataGridViewComboBoxCell
Inherits from / implements: DataGridViewComboBoxCell
Remarks
The column creates these cells for you. The cell takes its list from the column and its editor takes its settings from the column, so configure the column rather than individual cells.
Members at a glance
| Constructors | |
|---|---|
BinaryTreeListViewComboBoxCell | Initialises a new cell. The column creates its cells itself, so this is needed only to build a cell by hand. |
| Properties | |
DefaultNewRowValue | Gets the value a cell has on the grid's new-row line, before the user types in it. |
DropStyleIsMultiColumn | Gets or sets a multi-column flag on this cell. The editor does not read it: set
BinaryComboBoxColumn.DropStyleIsMultiColumn on the column instead. |
EditType | Gets the type of the control the grid creates to edit the cell: a control derived from BinaryTextComboBox. |
| Methods | |
InitializeEditingControl | Prepares the grid's editing combo box for this cell, giving it the cell's list and current value. |
Constructors
BinaryTreeListViewComboBoxCell
Initialises a new cell. The column creates its cells itself, so this is needed only to build a cell by hand.
Properties
DefaultNewRowValue
Gets the value a cell has on the grid's new-row line, before the user types in it.
- Value
- The text
"None".
DropStyleIsMultiColumn
Gets or sets a multi-column flag on this cell. The editor does not read it: set
BinaryComboBoxColumn.DropStyleIsMultiColumn on the column instead.
- Value
trueorfalse. The default isfalse.
EditType
Gets the type of the control the grid creates to edit the cell: a control derived from BinaryTextComboBox.
- Value
- The editing control's type.
Methods
InitializeEditingControl
Prepares the grid's editing combo box for this cell, giving it the cell's list and current value.
Parameters
rowIndex- The row of the cell being edited.
initialFormattedValue- The value the editor starts with, as shown in the cell.
dataGridViewCellStyle- The style of the cell being edited.
Remarks
The column's own settings are applied to the editor when the grid applies the cell's style to it.