WinForms › Tree List View › BinaryTreeListViewComboBoxCell
BinaryTreeListViewComboBoxCell
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.TreeControls
The cell of a BinaryTreeListViewComboBoxColumn, edited with a Binarymission combo box.
public class BinaryTreeListViewComboBoxCell : DataGridViewComboBoxCell
Inherits from / implements: DataGridViewComboBoxCell
Remarks
The column creates its cells; set the column's properties rather than the cell's, since the editor takes its settings from the column.
Members at a glance
| Constructors | |
|---|---|
BinaryTreeListViewComboBoxCell | Creates a combo box cell. A BinaryTreeListViewComboBoxColumn creates its cells itself. |
| Properties | |
DefaultNewRowValue | Gets the value shown in the grid's row for new entries. |
DropStyleIsMultiColumn | Gets or sets a value the cell keeps but does not use; the drop style is the column's
BinaryTreeListViewComboBoxColumn.DropStyleIsMultiColumn. |
EditType | Gets the type of the editor the grid creates for this cell: the column's combo box editor. |
| Methods | |
InitializeEditingControl | Prepares the editor for this cell as editing starts, giving it the cell's list and value. |
Constructors
BinaryTreeListViewComboBoxCell
public BinaryTreeListViewComboBoxCell() : base()
Creates a combo box cell. A BinaryTreeListViewComboBoxColumn creates its cells itself.
Properties
DefaultNewRowValue
public override object DefaultNewRowValue
Gets the value shown in the grid's row for new entries.
- Value
- The text "None". A tree list view has no such row.
DropStyleIsMultiColumn
public bool DropStyleIsMultiColumn
Gets or sets a value the cell keeps but does not use; the drop style is the column's
BinaryTreeListViewComboBoxColumn.DropStyleIsMultiColumn.
- Value
falseby default.
EditType
public override Type EditType
Gets the type of the editor the grid creates for this cell: the column's combo box editor.
Methods
InitializeEditingControl
public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)
Prepares the editor for this cell as editing starts, giving it the cell's list and value.
Parameters
rowIndex- The row of the cell.
initialFormattedValue- The value the editor starts with, as shown in the cell.
dataGridViewCellStyle- The cell's style.