# C1.Win.FlexGrid.RowCol.Editor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_RowCol_Editor_" data-uid="C1.Win.FlexGrid.RowCol.Editor*">Editor Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_RowCol_Editor_" data-uid="C1.Win.FlexGrid.RowCol.Editor*"></a>
<h4 id="C1_Win_FlexGrid_RowCol_Editor" data-uid="C1.Win.FlexGrid.RowCol.Editor">Editor</h4>
<div class="markdown level1 summary"><p>Gets or sets the custom editor used to edit cells in this column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[TypeConverter(&quot;C1.Win.FlexGrid.Design.GridColumnEditorConverter, C1.Win.FlexGrid.5.Design&quot;)]
public virtual Control Editor { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;TypeConverter(&quot;C1.Win.FlexGrid.Design.GridColumnEditorConverter, C1.Win.FlexGrid.5.Design&quot;)&gt;
Public Overridable Property Editor As Control</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_RowCol_Editor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The grid provides several built-in editors that are automatically selected based on the properties of the
cell being edited.</p>
<p>This property allows you to use external editors when editing values in a given column. Any control 
can be used as an external editor, but to achieve complete integration with the grid, the external editor should 
implement the <span class="xref">C1.Win.IEmbeddedEditor</span> interface.</p>
<p>You can associate external editors with columns at design time (using the grid's Column Editor) or at run 
time, by setting this property.</p>
</div>
<h5 id="C1_Win_FlexGrid_RowCol_Editor_examples">Examples</h5>
<p>The code below creates a C1DateEdit control and assigns it to the <a class="xref" href="C1.Win.FlexGrid.RowCol.Editor.html#C1_Win_FlexGrid_RowCol_Editor">Editor</a> property of a grid
column. The control will be used to edit cells on this column instead of the default <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.datetimepicker">DateTimePicker</a>
control.</p>
<p>All controls in the C1Input and C1Input.Pickers libraries implement the <span class="xref">C1.Win.IEmbeddedEditor</span> interface and can be
used as grid editors without any extra code.</p>
<pre><code class="lang-csharp">// create C1DateEdit control (included with C1Input.Pickers)
C1DateEdit dateEdit = new C1DateEdit();

// use the new control as an editor for a grid column
_flex.Cols[1].DataType = typeof(DateTime);
_flex.Cols[1].Editor = c1DateEdit;</code></pre>

</div>
