# C1.WPF.Grid.FlexGrid.SetCellValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_FlexGrid_SetCellValue_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue*">SetCellValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_FlexGrid_SetCellValue_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue*"></a>
<h4 id="C1_WPF_Grid_FlexGrid_SetCellValue_C1_WPF_Grid_GridCellRange_System_Object_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue(C1.WPF.Grid.GridCellRange,System.Object)">SetCellValue(GridCellRange, object)</h4>
<div class="markdown level1 summary"><p>Sets the value corresponding to the cell in the specified range.</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(GridCellRange range, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetCellValue(range As GridCellRange, 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.GridCellRange.html">GridCellRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The range of 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_FlexGrid_SetCellValue_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue*"></a>
<h4 id="C1_WPF_Grid_FlexGrid_SetCellValue_C1_WPF_Grid_GridCellType_C1_WPF_Grid_GridCellRange_System_Object_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue(C1.WPF.Grid.GridCellType,C1.WPF.Grid.GridCellRange,System.Object)">SetCellValue(GridCellType, GridCellRange, object)</h4>
<div class="markdown level1 summary"><p>Sets the value corresponding to the cell in the specified range.</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(GridCellType cellType, GridCellRange range, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetCellValue(cellType As GridCellType, range As GridCellRange, 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.GridCellRange.html">GridCellRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The range of 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_FlexGrid_SetCellValue_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue*"></a>
<h4 id="C1_WPF_Grid_FlexGrid_SetCellValue_C1_WPF_Grid_GridCellType_System_Int32_System_Int32_System_Object_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue(C1.WPF.Grid.GridCellType,System.Int32,System.Int32,System.Object)">SetCellValue(GridCellType, int, int, object)</h4>
<div class="markdown level1 summary"><p>Sets the value corresponding to the cell in the specified range.</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(GridCellType cellType, int row, int column, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetCellValue(cellType As GridCellType, row As Integer, column As Integer, 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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>The row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>The column.</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_FlexGrid_SetCellValue_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue*"></a>
<h4 id="C1_WPF_Grid_FlexGrid_SetCellValue_C1_WPF_Grid_GridCellType_C1_WPF_Grid_GridRow_C1_WPF_Grid_GridColumn_System_Object_" data-uid="C1.WPF.Grid.FlexGrid.SetCellValue(C1.WPF.Grid.GridCellType,C1.WPF.Grid.GridRow,C1.WPF.Grid.GridColumn,System.Object)">SetCellValue(GridCellType, GridRow, GridColumn, object)</h4>
<div class="markdown level1 summary"><p>Sets the value corresponding to the cell in the specified row and 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(GridCellType cellType, GridRow row, GridColumn column, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetCellValue(cellType As GridCellType, row As GridRow, column As GridColumn, 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.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Grid.GridColumn.html">GridColumn</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>The column.</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.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
