CHECKBOX Attribute | CheckBox Property

Sets or retrieves a value that indicates whether to display a check box next to the nodes in a tree.

Syntax

ASP <tagPrefix:ELEMENT CHECKBOX = bCheckBox ... >
Script [ bCheckBox = ] object.CheckBox

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
bCheckBox System.Boolean that specifies or receives whether to display a check box next to the nodes in the tree.
falseDefault. No check boxes are displayed.
trueCheck boxes are displayed on each node in the tree.

The property is read/write. The property has a default value of false.

Remarks

Note  The following is true only when a TreeNode overrides a false value on a TreeNodeType and you are using the TreeView Editor in Visual Studio .NET.

Where the value of the CheckBox attribute on a TreeNodeType is true, a TreeNode element that is assigned that TreeNodeType cannot directly override the CheckBox value. To override the value and set it to false, do the following:

  1. Create a duplicate TreeNodeType.
  2. Change the CheckBox attribute to false.
  3. Change the name of the Type.
  4. Change the Type of the TreeNode to the same Type as the modified TreeNodeType.

Applies To

TreeBase, TREENODE, TREENODETYPE

See Also

Internet Explorer WebControls, About the TreeView WebControl