Home Forums WinForms controls Xceed Grid for WinForms How to display a button in a cell

Viewing 1 post (of 1 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #17803 |

    The grid does not provide a button cell editor or viewer nor is it possible to simulate a proper working button using the ControlViewer or CustomEditor classes. It is possible however to create a button in a cell by creating your own custom cell and overriding the PaintForeground method to draw the button.

    This also requires the you create your own custom cell row so that you can return the appropriate cell type in the row’s CreateCell method in the case where the data type of the column/cell is a button.

    Imported from legacy forums. Posted by Xceed admin (had 681 views)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.