# C1.WPF.Grid.FlexGrid.AutoGeneratingColumn

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_Grid_FlexGrid_AutoGeneratingColumn" data-uid="C1.WPF.Grid.FlexGrid.AutoGeneratingColumn" class="text-break">AutoGeneratingColumn Event
</h1>
<div class="markdown level0 summary"><p>Occurs when an auto-generated column is being created.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Grid.html">C1.WPF.Grid</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.Grid.dll</h6>
<h5 id="C1_WPF_Grid_FlexGrid_AutoGeneratingColumn_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;GridAutoGeneratingColumnEventArgs&gt; AutoGeneratingColumn</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event AutoGeneratingColumn As EventHandler(Of GridAutoGeneratingColumnEventArgs)</code></pre>
</div>
<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="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="C1.WPF.Grid.GridAutoGeneratingColumnEventArgs.html">GridAutoGeneratingColumnEventArgs</a>&gt;</td>
      <td>Occurs when an auto-generated column is being created.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Grid_FlexGrid_AutoGeneratingColumn_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>You can change the auto-generated column by setting the property <a class="xref" href="C1.WPF.Grid.GridAutoGeneratingColumnEventArgs.Column.html#C1_WPF_Grid_GridAutoGeneratingColumnEventArgs_Column">Column</a>.
You can cancel an auto-generated column by setting the property <a class="xref" href="../C1.WPF.GridControl/C1.WPF.Grid.CancelEventArgs.Cancel.html#C1_WPF_Grid_CancelEventArgs_Cancel">Cancel</a> to true,
in this case there will not be column for this property.</p>
</div>
</div>
