# C1.Win.FlexGrid.C1FlexGridBase.GetCellCheck

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_GetCellCheck_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.GetCellCheck*">GetCellCheck Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_GetCellCheck_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.GetCellCheck*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_GetCellCheck_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.GetCellCheck(System.Int32,System.Int32)">GetCellCheck(int, int)</h4>
<div class="markdown level1 summary"><p>Gets the state of the checkbox in a grid cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual CheckEnum GetCellCheck(int row, int col)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function GetCellCheck(row As Integer, col As Integer) As CheckEnum</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">row</span></td>
      <td><p>Row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>Column index.</p>
</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="C1.Win.FlexGrid.CheckEnum.html">CheckEnum</a></td>
      <td><p>One of the values in the <a class="xref" href="C1.Win.FlexGrid.CheckEnum.html">CheckEnum</a> enumeration.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_GetCellCheck_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>By default, the grid displays values in Boolean columns as check boxes (the column's
data type determined by the <a class="xref" href="C1.Win.FlexGrid.RowCol.DataType.html#C1_Win_FlexGrid_RowCol_DataType">DataType</a> property). If you don't want Boolean 
values displayed as check boxes, set the column's <a class="xref" href="C1.Win.FlexGrid.RowCol.Format.html#C1_Win_FlexGrid_RowCol_Format">Format</a> property to a 
string containing the values that should be displayed for True and False values, separated by
a semi-colon. For example:</p>
<pre><code class="lang-csharp">flex.Cols["CheckBoxes"].DataType = typeof(bool);
flex.Cols["yesNo"].DataType = typeof(bool);
flex.Cols["yesNo"].Format := "Yes;No";</code></pre>
<p>In unbound mode, you can use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.GetCellCheck.html#C1_Win_FlexGrid_C1FlexGridBase_GetCellCheck_System_Int32_System_Int32_">GetCellCheck(int, int)</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.SetCellCheck.html#C1_Win_FlexGrid_C1FlexGridBase_SetCellCheck_System_Int32_System_Int32_C1_Win_FlexGrid_CheckEnum_">SetCellCheck(int, int, CheckEnum)</a> 
methods to add check boxes to any cells. The check boxes will be displayed along with any text in 
the cell, and you can set their position using the column's <a class="xref" href="C1.Win.FlexGrid.RowCol.ImageAlign.html#C1_Win_FlexGrid_RowCol_ImageAlign">ImageAlign</a> property.</p>
<p>There are two types of check boxes: Boolean and tri-state. Boolean check boxes toggle between 
the <a class="xref" href="C1.Win.FlexGrid.CheckEnum.html#C1_Win_FlexGrid_CheckEnum_Checked">Checked</a> and <a class="xref" href="C1.Win.FlexGrid.CheckEnum.html#C1_Win_FlexGrid_CheckEnum_Unchecked">Unchecked</a> states. Tri-state check 
boxes cycle through the settings <a class="xref" href="C1.Win.FlexGrid.CheckEnum.html#C1_Win_FlexGrid_CheckEnum_TSChecked">TSChecked</a>, <a class="xref" href="C1.Win.FlexGrid.CheckEnum.html#C1_Win_FlexGrid_CheckEnum_TSUnchecked">TSUnchecked</a>, 
and <a class="xref" href="C1.Win.FlexGrid.CheckEnum.html#C1_Win_FlexGrid_CheckEnum_TSGrayed">TSGrayed</a>.</p>
<p>For example, the code below creates a Boolean checkbox in cell (3,3) and a tri-state checkbox 
in cell (4,3):</p>
<pre><code class="lang-csharp">flex.SetCellCheck(3, 3, CheckEnum.Unchecked)   // Boolean;
flex.SetCellCheck(4, 3, CheckEnum.TSUnchecked) // tri-state;</code></pre>
</div>
</div>
