I am trying to create a delete button to the right of each row in the DevExpress GridControl, for example:

What I did was add another column and set its ColumnEdit property to the RepositoryItemButtonEdit instance. I am handling a ButtonClick event to remove a row.
I can determine which line I am joining from this code:
myGridView.GetRow(myGridView.FocusedRowHandle);
Since I do not need a text editor on my button, I set the TextEditStyle to HideTextEditor.
By default, the button shows an ellipsis.
To remove the ellipsis, I adjusted the Buttons property to RepositoryItemButtonEdit. I set the view in Glyph and set the image to the X icon.
Unfortunately, this simply removes the button.
Does anyone know a better way to do this or a way to show a button with an image on it in each grid line?
source share