# C1.Win.TreeView.C1TreeNode.GetValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TreeView_C1TreeNode_GetValue_" data-uid="C1.Win.TreeView.C1TreeNode.GetValue*">GetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TreeView_C1TreeNode_GetValue_" data-uid="C1.Win.TreeView.C1TreeNode.GetValue*"></a>
<h4 id="C1_Win_TreeView_C1TreeNode_GetValue_System_Int32_" data-uid="C1.Win.TreeView.C1TreeNode.GetValue(System.Int32)">GetValue(int)</h4>
<div class="markdown level1 summary"><p>Gets the value of the tree node at the specified column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object GetValue(int columnIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetValue(columnIndex As Integer) As Object</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnIndex</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TreeView_C1TreeNode_GetValue_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Column must have <a class="xref" href="C1.Win.TreeView.C1TreeColumn.DisplayFieldName.html#C1_Win_TreeView_C1TreeColumn_DisplayFieldName">DisplayFieldName</a> value.</p>
</div>


<a id="C1_Win_TreeView_C1TreeNode_GetValue_" data-uid="C1.Win.TreeView.C1TreeNode.GetValue*"></a>
<h4 id="C1_Win_TreeView_C1TreeNode_GetValue" data-uid="C1.Win.TreeView.C1TreeNode.GetValue">GetValue()</h4>
<div class="markdown level1 summary"><p>Gets the value of the tree node.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object GetValue()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetValue() As Object</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TreeView_C1TreeNode_GetValue_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>For bound mode, this method returns a data source entry. For example: a DataRow when the data source is a DataTable, or an instance of a custom object when the data source is a collection.</p>
</div>
</div>
