BinaryTreeListViewColumn
The column that carries the tree: its cells draw each node's indent, connecting lines, expand glyph and image or check box beside the text.
public class BinaryTreeListViewColumn : DataGridViewTextBoxColumn
Inherits from / implements: DataGridViewTextBoxColumn
Remarks
Add exactly one to a BinaryTreeListView, at any position; the other columns can
be of any type. It is a text column in every other respect – set
DataGridViewColumn.HeaderText, DataGridViewColumn.Width or
DataGridViewColumn.FillWeight, and DataGridViewColumn.ReadOnly as for any
column. Give it room: each level of the tree indents its text a further 20 logical pixels.
It cannot be added while the control's BinaryTreeListView.ControlDataDisplayMode
is ControlDataDisplayMode.ListView.
Examples
accounts.Columns.Add(new BinaryTreeListViewColumn { Name = "Account", HeaderText = "Account", FillWeight = 200 });
accounts.Columns.Add(new DataGridViewTextBoxColumn { Name = "Balance", HeaderText = "Balance" });
accounts.Columns["Balance"].DefaultCellStyle.Format = "N2";
accounts.Columns["Balance"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;See also
Members at a glance
| Constructors | |
|---|---|
BinaryTreeListViewColumn | Creates a tree column whose cells are BinaryTreeListViewCell objects. |
| Methods | |
Clone | Creates a copy of the column, as a tree column with tree cells. |
Constructors
BinaryTreeListViewColumn
Creates a tree column whose cells are BinaryTreeListViewCell objects.
Remarks
The column is not sortable by the grid itself; the control sorts the tree (see
BinaryTreeListView.AllowUserToSortColumns).
Methods
Clone
Creates a copy of the column, as a tree column with tree cells.
Returns
A new BinaryTreeListViewColumn with this column's settings.