# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AutoGeneratingColumn

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AutoGeneratingColumn" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AutoGeneratingColumn" class="text-break">AutoGeneratingColumn Event
</h1>
<div class="markdown level0 summary"><p>Occurs one time for each public, non-static property in the bound data type when the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemsSource.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemsSource">ItemsSource</a> property is changed and the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AutoGenerateColumns.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AutoGenerateColumns">AutoGenerateColumns</a> property is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
<h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AutoGeneratingColumn_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;AutoGeneratingListColumnEventArgs&gt; AutoGeneratingColumn</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event AutoGeneratingColumn As EventHandler(Of AutoGeneratingListColumnEventArgs)</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.AutoGeneratingListColumnEventArgs.html">AutoGeneratingListColumnEventArgs</a>&gt;</td>
      <td>Occurs one time for each public, non-static property in the bound data type when the  property is changed and the  property is true.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AutoGeneratingColumn_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event gives you the option of altering each generated column before it is added to the control.
Additionally, you have the option of canceling the event to prevent specific columns from being added.</p>
</div>
</div>
