Cell with Text and Button on right

Posted by: jeremie-baldy on 8 September 2017, 2:47 pm EST

  • Posted 8 September 2017, 2:47 pm EST

    Hi,

    I use 4.0.2026.2005  in C#.

     

    I wish have a Cell with text and a button on the right.

    When i click on a button, run a form...

     

    Is it possible ?

    I look the default celltypes but i don't belive that is native. May be with derivation ?

     

    thanks

     

  • Replied 8 September 2017, 2:47 pm EST

    You can implement your own types of cells by creating a subclass that
    inherits an existing cell type (that is, overriding each method in that class).
    The custom cell type class should be marked as serializable if the clipboard
    will be used with it or if the export to Excel methods are used.


    The custom editor example in the Spread Demo sample (samples folder) shows
    how to use a control as a cell editor. The FarOut! sample in the samples folder
    demonstrates custom cell types.


    For information on other features of cell types, refer to Understanding Additional Features of Cell
    Types
     in the installed help file

  • Replied 8 September 2017, 2:47 pm EST

    Hello,

    I have created a sample depicting how you could create a custom celltype with a button and text both in the same cell, and clicking on a button displays a new form. Kindly have a look at the attached sample.

    Hope it will help you. Please let me know if you have any queries further.

    Thanks,

    Manpreet Kaur.


    2011/11/cellwithbutton.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels