title: In WinForms, how can I create a delete button in a DevExpress GridControl?
body: <p>I'm trying to create a delete button at the right of every row in a DevExpress GridControl, like this:</p>
  
  <p><img src="https://i.stack.imgur.com/LT40J.jpg" alt="enter image description here"></p>
  
  <p>What I've done is added another column and set its ColumnEdit property to an instance of RepositoryItemButtonEdit.  I handle the ButtonClick event, to delete a row.</p>
  
  <p>I can determine which row I'm on from this code:</p>
  
  <pre><code>myGridView.GetRow(myGridView.FocusedRowHandle);
  </code></pre>
  
  <p>Because I don't want a text editor on my button, I set the TextEditStyle to HideTextEditor.</p>
  
  <p>By default, the button shows an ellipsis.</p>
  
  <p>To remove the ellipsis, I adjusted the Buttons property on the RepositoryItemButtonEdit.  I set the Kind to Glyph and set the image to my X icon.</p>
  
  <p>Unfortunately that seems to simply remove the button altogether.</p>
  
  <p>Does anyone know a better way to do this, or a way to show a button with an image on it, in each grid row?</p>