HypernovaDesktop Components · docs
Binarymission
WinForms › Combo Box › BinaryTreeListViewComboBoxCell

BinaryTreeListViewComboBoxCell

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.ListControls

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
BinaryTreeListViewComboBoxCellInitialises a new cell. The column creates its cells itself, so this is needed only to build a cell by hand.
Properties
DefaultNewRowValueGets the value a cell has on the grid's new-row line, before the user types in it.
DropStyleIsMultiColumnGets or sets a multi-column flag on this cell. The editor does not read it: set BinaryComboBoxColumn.DropStyleIsMultiColumn on the column instead.
EditTypeGets the type of the control the grid creates to edit the cell: a control derived from BinaryTextComboBox.
Methods
InitializeEditingControlPrepares the grid's editing combo box for this cell, giving it the cell's list and current value.

Constructors

BinaryTreeListViewComboBoxCell

public BinaryTreeListViewComboBoxCell() : base()

Initialises a new cell. The column creates its cells itself, so this is needed only to build a cell by hand.

Properties

DefaultNewRowValue

public override object 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

public bool 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
true or false. The default is false.

EditType

public override Type 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

public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)

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.