System.Web.UI.WebControls.TreeView: Method Members

The methods of System.Web.UI.WebControls.TreeView are listed below. For a list of all members, see the TreeView Members list.

See Also: Inherited members from System.Web.UI.WebControls.HierarchicalDataBoundControl

Public Methods

CollapseAll()

Closes every node in the tree.

override
DataBind()

Calls the BaseDataBoundControl.DataBind method of the base class.

ExpandAll()

Opens every node in the tree.

FindNode(string) : TreeNode

Retrieves the System.Web.UI.WebControls.TreeNode object in the System.Web.UI.WebControls.TreeView control at the specified value path.

override
RenderBeginTag(System.Web.UI.HtmlTextWriter)

Renders the HTML opening tag of the control to the specified writer.

override
RenderEndTag(System.Web.UI.HtmlTextWriter)

Renders the HTML closing tag of the control to the specified writer.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds HTML attributes and styles that need to be rendered to the specified System.Web.UI.HtmlTextWriter control.

override
CreateControlCollection() : System.Web.UI.ControlCollection

Creates a collection to store child controls.

CreateNode() : TreeNode

Returns a new instance of the System.Web.UI.WebControls.TreeNode class. The TreeView.CreateNode is a helper method.

GetCallbackResult() : string

Returns the result of a callback event that targets a control.

LoadPostData(string, System.Collections.Specialized.NameValueCollection) : bool

Processes postback data for the System.Web.UI.WebControls.TreeView control.

override
LoadViewState(object)

Loads the previously saved view state of the System.Web.UI.WebControls.TreeView control.

override
OnInit(EventArgs)

Raises the System.Web.UI.Control.Init event.

override
OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

OnSelectedNodeChanged(EventArgs)

Raises the TreeView.SelectedNodeChanged event of the System.Web.UI.WebControls.TreeView control.

OnTreeNodeCheckChanged(TreeNodeEventArgs)

Raises the TreeView.TreeNodeCheckChanged event of the System.Web.UI.WebControls.TreeView control.

OnTreeNodeCollapsed(TreeNodeEventArgs)

Raises the TreeView.TreeNodeCollapsed event of the System.Web.UI.WebControls.TreeView control.

OnTreeNodeDataBound(TreeNodeEventArgs)

Raises the TreeView.TreeNodeDataBound event of the System.Web.UI.WebControls.TreeView control.

OnTreeNodeExpanded(TreeNodeEventArgs)

Raises the TreeView.TreeNodeExpanded event of the System.Web.UI.WebControls.TreeView control.

OnTreeNodePopulate(TreeNodeEventArgs)

Raises the TreeView.TreeNodePopulate event of the System.Web.UI.WebControls.TreeView control.

override
PerformDataBinding()

Creates all the nodes based on the data source.

RaiseCallbackEvent(string)

Raises the callback event using the specified arguments.

RaisePostBackEvent(string)

Enables the System.Web.UI.WebControls.TreeView control to process an event that is raised when a form is posted to the server. The TreeView.RaisePostBackEvent(string) method is a helper method for the TreeView.System#Web#UI#ICallbackEventHandler#RaiseCallbackEvent(string) method.

RaisePostDataChangedEvent()

Signals the System.Web.UI.WebControls.TreeView control to notify the ASP.NET application that the state of the control has changed.

override
RenderContents(System.Web.UI.HtmlTextWriter)

Renders the nodes in the System.Web.UI.WebControls.TreeView control.

override
SaveViewState() : object

Saves the state of the System.Web.UI.WebControls.TreeView control.

SetNodeDataBound(TreeNode, bool)

Allows a derived class to set whether the specified System.Web.UI.WebControls.TreeNode control is data-bound.

SetNodeDataItem(TreeNode, object)

Allows a derived class to set the data item for the specified System.Web.UI.WebControls.TreeNode control.

SetNodeDataPath(TreeNode, string)

Allows a derived class to set the data path for the specified System.Web.UI.WebControls.TreeNode control.

override
TrackViewState()

Tracks view-state changes to the System.Web.UI.WebControls.TreeView control so that they can be stored in the System.Web.UI.StateBag object for the control. This System.Web.UI.StateBag is accessible through the System.Web.UI.Control.ViewState property.