# C1.WPF.Grid.GridColumn.PrepareOptionsMenu

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_GridColumn_PrepareOptionsMenu_" data-uid="C1.WPF.Grid.GridColumn.PrepareOptionsMenu*">PrepareOptionsMenu Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_GridColumn_PrepareOptionsMenu_" data-uid="C1.WPF.Grid.GridColumn.PrepareOptionsMenu*"></a>
<h4 id="C1_WPF_Grid_GridColumn_PrepareOptionsMenu_C1_WPF_Menu_C1MenuList_System_Action_" data-uid="C1.WPF.Grid.GridColumn.PrepareOptionsMenu(C1.WPF.Menu.C1MenuList,System.Action)">PrepareOptionsMenu(C1MenuList, Action)</h4>
<div class="markdown level1 summary"><p>Called when the options menu is about to be shown.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void PrepareOptionsMenu(C1MenuList optionsMenu, Action closeAction)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub PrepareOptionsMenu(optionsMenu As C1MenuList, closeAction As Action)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">C1MenuList</span></td>
      <td><span class="parametername">optionsMenu</span></td>
      <td><p>The menu that will be displayed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action">Action</a></td>
      <td><span class="parametername">closeAction</span></td>
      <td><p>Action that will close the drop-down showing this menu.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
