# C1.WPF.Grid.GridColumn.SetCellValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_GridColumn_SetCellValue_" data-uid="C1.WPF.Grid.GridColumn.SetCellValue*">SetCellValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_GridColumn_SetCellValue_" data-uid="C1.WPF.Grid.GridColumn.SetCellValue*"></a>
<h4 id="C1_WPF_Grid_GridColumn_SetCellValue_C1_WPF_Grid_GridCellType_C1_WPF_Grid_GridRow_System_Object_" data-uid="C1.WPF.Grid.GridColumn.SetCellValue(C1.WPF.Grid.GridCellType,C1.WPF.Grid.GridRow,System.Object)">SetCellValue(GridCellType, GridRow, object)</h4>
<div class="markdown level1 summary"><p>Sets the value corresponding to the cell in the intersection of the specified row and this column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void SetCellValue(GridCellType cellType, GridRow row, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub SetCellValue(cellType As GridCellType, row As GridRow, value 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="C1.WPF.Grid.GridCellType.html">GridCellType</a></td>
      <td><span class="parametername">cellType</span></td>
      <td><p>The type of cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Grid.GridRow.html">GridRow</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>The row that determines the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to be set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Grid_GridColumn_SetCellValue_" data-uid="C1.WPF.Grid.GridColumn.SetCellValue*"></a>
<h4 id="C1_WPF_Grid_GridColumn_SetCellValue_System_Object_System_Object_" data-uid="C1.WPF.Grid.GridColumn.SetCellValue(System.Object,System.Object)">SetCellValue(object, object)</h4>
<div class="markdown level1 summary"><p>Sets the specified <code class="paramref">value</code> to <code class="paramref">dataItem</code> property related to this column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetCellValue(object dataItem, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetCellValue(dataItem As Object, value 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.object">object</a></td>
      <td><span class="parametername">dataItem</span></td>
      <td><p>The data item which stores the value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to be set in the data item.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
