TreeNode.DataItem Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the data item that is bound to the control.
public:
property System::Object ^ DataItem { System::Object ^ get(); };
[System.ComponentModel.Browsable(false)]
public object DataItem { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DataItem : obj
Public ReadOnly Property DataItem As Object
A Object that represents the data item that is bound to the control. The default value is null
, which indicates that the node is not bound to any data item.
- Attributes
When the TreeView control is bound to a data source, such as an XmlDataSource object, this property is set to the data item that is bound to this specific node. This property is commonly used to access the values of the data item.
Nota
This property is available only after data binding has occurred.
Prodotto | Versioni |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: