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.true
Check 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 tofalse
, do the following:
- Create a duplicate TreeNodeType.
- Change the CheckBox attribute to
false
.- Change the name of the Type.
- 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