# C1.Win.FlexGrid.CellStyle.DataType

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_CellStyle_DataType_" data-uid="C1.Win.FlexGrid.CellStyle.DataType*">DataType Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_CellStyle_DataType_" data-uid="C1.Win.FlexGrid.CellStyle.DataType*"></a>
<h4 id="C1_Win_FlexGrid_CellStyle_DataType" data-uid="C1.Win.FlexGrid.CellStyle.DataType">DataType</h4>
<div class="markdown level1 summary"><p>Gets or sets the data type for the style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public Type DataType { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Property DataType As Type</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_CellStyle_DataType_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the grid is bound to a data source, this property is set automatically based on the 
data schema.</p>
<p>This property is used to coerce values assigned to cells into the proper type.</p>
</div>
</div>
