System.Web.UI.WebControls.TreeNodeBinding.ShowCheckBox Property

Gets or sets a value indicating whether a check box is displayed next to a node to which the System.Web.UI.WebControls.TreeNodeBinding object is applied.

Syntax

[System.ComponentModel.DefaultValue(false)]
public Nullable<bool> ShowCheckBox { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

To provide multinode selection support in the System.Web.UI.WebControls.TreeView control, you can display check boxes next to an image in the node. When the System.Web.UI.WebControls.TreeView control is bound to a data source, use the TreeNodeBinding.ShowCheckBox property to specify the value to bind to the TreeNode.ShowCheckBox property of a System.Web.UI.WebControls.TreeNode object. This binding relationship affects all System.Web.UI.WebControls.TreeNode objects to which the System.Web.UI.WebControls.TreeNodeBinding object is applied. The TreeNode.ShowCheckBox property is used to show or hide the check box for a node.

Note:

Although the TreeNodeBinding.ShowCheckBox property can be used to display check boxes, it is more common to use the TreeView.ShowCheckBoxes property of the System.Web.UI.WebControls.TreeView control. However, the TreeView.ShowCheckBoxes property affects every node type that is specified by the property; therefore, the TreeNodeBinding.ShowCheckBox property is often used to override that setting for a node to which the System.Web.UI.WebControls.TreeNodeBinding object is applied. You can selectively override the TreeNodeBinding.ShowCheckBox property by setting the TreeNode.ShowCheckBox property of each node directly.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0