Skip to main content

TreeViewNodeCommandEventArgs.CommandSource Property

Gets an object representing a control which forced a postback.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public object CommandSource { get; }

Property Value

Type Description

A Object representing a control which forced a postback.


The ASPxTreeView.NodeCommand event fires when a control residing on a node’s template raises the Command event. For instance, this may occur when a Button control residing on a node template is clicked. In this instance, the CommandSource property returns the clicked Button control. This can be used to identify the control that forced a postback, if there are several controls residing on a template.

See Also