# C1.Win.List.BeforeColEditEventArgs.Cancel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_BeforeColEditEventArgs_Cancel_" data-uid="C1.Win.List.BeforeColEditEventArgs.Cancel*">Cancel Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_BeforeColEditEventArgs_Cancel_" data-uid="C1.Win.List.BeforeColEditEventArgs.Cancel*"></a>
<h4 id="C1_Win_List_BeforeColEditEventArgs_Cancel" data-uid="C1.Win.List.BeforeColEditEventArgs.Cancel">Cancel</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating that editing should be disallowed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Cancel { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Cancel As Boolean</code></pre>
</div>
<h5 id="C1_Win_List_BeforeColEditEventArgs_Cancel_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If event procedure sets the Cancel argument to True, the cell will not enter edit mode. Otherwise, the ColEdit event is raised immediately, followed by the Change event for the KeyChar property, if non-zero.</p>
</div>
</div>
