# C1.Win.FlexGrid.CellStyleEnum

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Win_FlexGrid_CellStyleEnum" data-uid="C1.Win.FlexGrid.CellStyleEnum" class="text-break">CellStyleEnum Enum
</h1>
  <div class="markdown level0 summary"><p>Enumeration used to retrieve <a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a> objects from the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Styles.html#C1_Win_FlexGrid_C1FlexGridBase_Styles">Styles</a>
collection.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
  <h5 id="C1_Win_FlexGrid_CellStyleEnum_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum CellStyleEnum</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum CellStyleEnum</code></pre>
  </div>
  <h5 id="C1_Win_FlexGrid_CellStyleEnum_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Cell styles can be retrieved from the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Styles.html#C1_Win_FlexGrid_C1FlexGridBase_Styles">Styles</a> collection using the
indexer or the style name. Built-in styles can also be obtained directly through read-only properties.</p>
</div>
  <h5 id="C1_Win_FlexGrid_CellStyleEnum_examples"><strong>Examples</strong></h5>
  <p>The code below shows three ways to obtain a reference to a grid's default style:</p>
<pre><code class="lang-csharp">// s1, s2, and s3 are all references to the grid's Normal style:
CellStyle s1 = _flex.Styles[CellStyleEnum.Normal];
CellStyle s2 = _flex.Styles["Normal"];
CellStyle s3 = _flex.Styles.Normal;</code></pre>

  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Alternate">Alternate</td>
        <td><p>Style used to render scrollable cells in even-numbered rows.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Editor">Editor</td>
        <td><p>Style used to render cells being edited.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_EmptyArea">EmptyArea</td>
        <td><p>Style used to render the area of the grid where there are no cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_FilterEditor">FilterEditor</td>
        <td><p>Style used to paint the filter editors.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_FirstCustomStyle">FirstCustomStyle</td>
        <td><p>Constant that indicates the first custom style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Fixed">Fixed</td>
        <td><p>Style used to render fixed cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Focus">Focus</td>
        <td><p>Style used to render the cell that has the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Footer">Footer</td>
        <td><p>Style used to paint the footers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Frozen">Frozen</td>
        <td><p>Style used to render cells that are frozen (editable and selectable, but not scrollable).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_FrozenAlternate">FrozenAlternate</td>
        <td><p>Style used to render cells that are frozen (editable and selectable, but not scrollable) in even-numbered rows.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_GrandTotal">GrandTotal</td>
        <td><p>Style automatically assigned to grand total nodes created with the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Highlight">Highlight</td>
        <td><p>Style used to render cells that are selected and highlighted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Hover">Hover</td>
        <td><p>Style used to render hovered cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_NewRow">NewRow</td>
        <td><p>Style used to render the last row on the grid when the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.AllowAddNew.html#C1_Win_FlexGrid_C1FlexGridBase_AllowAddNew">AllowAddNew</a> property is set to true.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Normal">Normal</td>
        <td><p>Style used to render scrollable normal cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Search">Search</td>
        <td><p>Style used to render cells that are being selected as the user types (see the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.AutoSearch.html#C1_Win_FlexGrid_C1FlexGridBase_AutoSearch">AutoSearch</a> property).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_SelectedColumnHeader">SelectedColumnHeader</td>
        <td><p>Style used to render selected column headers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_SelectedRowHeader">SelectedRowHeader</td>
        <td><p>Style used to render selected row headers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Subtotal0">Subtotal0</td>
        <td><p>Style automatically assigned to level-0 nodes created with the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Subtotal1">Subtotal1</td>
        <td><p>Style automatically assigned to level-1 nodes created with the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Subtotal2">Subtotal2</td>
        <td><p>Style automatically assigned to level-2 nodes created with the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Subtotal3">Subtotal3</td>
        <td><p>Style automatically assigned to level-3 nodes created with the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Subtotal4">Subtotal4</td>
        <td><p>Style automatically assigned to level-4 nodes created with the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellStyleEnum_Subtotal5">Subtotal5</td>
        <td><p>Style automatically assigned to level-5 nodes created with the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags)</span> method.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
