Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Ultra ControlContainer Editor
posted

Embedding a usercontrol with a button.  Need the following behavior.  Getting closer but could use some assistance please..

1. When any cell in a row is clicked the entire row displays highlighted (including cell with user control).  The usercontrol should be active so in this case the button should be active and if clicked should "work"

2. If  a usercontrol cell is clicked, the entire row should be selected & highlighted and the usercontrol should "work".  In this case if a button on a given row is selected the row should become selected & highlighted and the button click event should fire.

Thanks in advance.

 

  • 69832
    Suggested Answer
    Offline posted

    I think I understand that you want the button on your user control to process the same click that gets the cell into edit mode. The UltraGrid property that controls what clicking on a cell does this is CellClickAction, and you can set it to 'Edit' to cause cells to go into edit mode  what they are clicked, although I don't think it is possible to get a button on a UserControl to process that same click.