# C1.Win.FlexGrid.C1FlexGridBase.CellButtonImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_CellButtonImage_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.CellButtonImage*">CellButtonImage Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_CellButtonImage_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.CellButtonImage*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_CellButtonImage" data-uid="C1.Win.FlexGrid.C1FlexGridBase.CellButtonImage">CellButtonImage</h4>
<div class="markdown level1 summary"><p>Gets or sets the image to be used in cell buttons.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual Image CellButtonImage { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Property CellButtonImage As Image</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_CellButtonImage_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property allows you to customize the appearance of cell buttons. For details on how to 
create and handle cell buttons, see the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.CellButtonClick.html">CellButtonClick</a> event.</p>
<p>If you want to use a single picture for all cell buttons on the grid, assign the picture to the 
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.CellButtonImage.html#C1_Win_FlexGrid_C1FlexGridBase_CellButtonImage">CellButtonImage</a> property at design time. To change pictures depending on the row, column, or cell 
being edited, set the picture in response to the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.BeforeEdit.html">BeforeEdit</a> event.</p>
<p>The pictures used for cell buttons should fit within the button (larger pictures are truncated). 
They should also be transparent, so the button face can be seen through the empty parts of the picture.
For best results, use small icons (16 x 16 pixels) and draw the picture in the upper left 12 x 12 
rectangle within the icon.</p>
</div>
</div>
