in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Add buttons in the whole column

Last post 10-22-2007 5:12 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-16-2007 5:37 AM

    • Cyber6
    • Not Ranked
    • Joined on 10-16-2007
    • Posts 3

    Add buttons in the whole column

    Hi all,

    I would like to have a column with button to call some function when clicked.
    I had read on the forum from this web, but i stil cannot see the button appear?

    To add a button/ cell button, do i only change the combolist value to "..."?

    What could be wrong?

    Filed under: , ,
  • 10-22-2007 5:12 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 516

    Re: Add buttons in the whole column

    You have to set c1FlexGrid1.Cols[x].ComboList = "..."; and make sure AllowEditing is true for the column.

    Also note by default the button is only visible when the cell has focus.  Use this line of code to make the buttons always visible

    c1FlexGrid1.ShowButtons = ShowButtonsEnum.Always;

    You could instead use the HostedControl class (part of HostControls sample) to embed buttons down a column.  This allows complete customization of the buttons.  I've attached a sample that shows this technique.

    Regards,
    Greg L

    Filed under: ,
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.